summaryrefslogtreecommitdiff
path: root/keyboards/monsgeek
diff options
context:
space:
mode:
authorJoel Challis <git@zvecr.com>2023-11-13 22:30:19 +0000
committerGitHub <noreply@github.com>2023-11-14 09:30:19 +1100
commit1efc79063c5bc5fae6766f7555738b122ef8988d (patch)
treee1fdbc9f288736477a067f3094fe3280d2857325 /keyboards/monsgeek
parentde3c42125b661f62757f8ee4f6184c089340d3a0 (diff)
Migrate some EEPROM config to info.json (#22434)
Diffstat (limited to 'keyboards/monsgeek')
-rw-r--r--keyboards/monsgeek/m3/config.h1
-rw-r--r--keyboards/monsgeek/m3/info.json7
-rw-r--r--keyboards/monsgeek/m3/rules.mk3
3 files changed, 8 insertions, 3 deletions
diff --git a/keyboards/monsgeek/m3/config.h b/keyboards/monsgeek/m3/config.h
index 93ffa1f07c..41c9ea3cea 100644
--- a/keyboards/monsgeek/m3/config.h
+++ b/keyboards/monsgeek/m3/config.h
@@ -33,7 +33,6 @@
#define SPI_MOSI_PAL_MODE 5
#define EXTERNAL_FLASH_SPI_SLAVE_SELECT_PIN C12
-#define WEAR_LEVELING_BACKING_SIZE (8 * 1024)
/* I2C Config for LED Driver */
#define SNLED27351_DRIVER_COUNT 2
diff --git a/keyboards/monsgeek/m3/info.json b/keyboards/monsgeek/m3/info.json
index a93b0d47dc..df99a6a22c 100644
--- a/keyboards/monsgeek/m3/info.json
+++ b/keyboards/monsgeek/m3/info.json
@@ -11,6 +11,13 @@
},
"processor": "WB32FQ95",
"bootloader": "wb32-dfu",
+ "eeprom": {
+ "driver": "wear_leveling",
+ "wear_leveling": {
+ "driver": "spi_flash",
+ "backing_size": 8192
+ }
+ },
"features": {
"bootmagic": true,
"extrakey": true,
diff --git a/keyboards/monsgeek/m3/rules.mk b/keyboards/monsgeek/m3/rules.mk
index 24d5f6f52e..6e7633bfe0 100644
--- a/keyboards/monsgeek/m3/rules.mk
+++ b/keyboards/monsgeek/m3/rules.mk
@@ -1,2 +1 @@
-EEPROM_DRIVER = wear_leveling
-WEAR_LEVELING_DRIVER = spi_flash
+# This file intentionally left blank