Browse Source

Migrate spi_flash WEAR_LEVELING_DRIVER to info.json (#21978)

Joel Challis 2 years ago
parent
commit
909054c357
38 changed files with 122 additions and 55 deletions
  1. 6 0
      keyboards/akko/5108/info.json
  2. 1 2
      keyboards/akko/5108/rules.mk
  3. 6 0
      keyboards/akko/acr87/info.json
  4. 1 3
      keyboards/akko/acr87/rules.mk
  5. 6 0
      keyboards/akko/top40/info.json
  6. 1 6
      keyboards/akko/top40/rules.mk
  7. 6 0
      keyboards/annepro2/c15/info.json
  8. 0 4
      keyboards/annepro2/c15/rules.mk
  9. 6 0
      keyboards/annepro2/c18/info.json
  10. 0 4
      keyboards/annepro2/c18/rules.mk
  11. 4 1
      keyboards/chosfox/cf81/info.json
  12. 1 1
      keyboards/chosfox/cf81/rules.mk
  13. 6 0
      keyboards/gmmk/gmmk2/p96/ansi/info.json
  14. 0 2
      keyboards/gmmk/gmmk2/p96/ansi/rules.mk
  15. 6 0
      keyboards/gmmk/gmmk2/p96/iso/info.json
  16. 0 2
      keyboards/gmmk/gmmk2/p96/iso/rules.mk
  17. 6 0
      keyboards/gmmk/numpad/info.json
  18. 0 3
      keyboards/gmmk/numpad/rules.mk
  19. 6 0
      keyboards/gmmk/pro/rev2/ansi/info.json
  20. 0 2
      keyboards/gmmk/pro/rev2/ansi/rules.mk
  21. 6 0
      keyboards/gmmk/pro/rev2/iso/info.json
  22. 0 2
      keyboards/gmmk/pro/rev2/iso/rules.mk
  23. 6 0
      keyboards/hfdkb/ac001/info.json
  24. 0 2
      keyboards/hfdkb/ac001/rules.mk
  25. 6 0
      keyboards/horrortroll/handwired_k552/info.json
  26. 0 4
      keyboards/horrortroll/handwired_k552/rules.mk
  27. 6 0
      keyboards/inland/kb83/info.json
  28. 0 2
      keyboards/inland/kb83/rules.mk
  29. 7 1
      keyboards/inland/mk47/info.json
  30. 1 2
      keyboards/inland/mk47/rules.mk
  31. 6 0
      keyboards/monsgeek/m1/info.json
  32. 1 6
      keyboards/monsgeek/m1/rules.mk
  33. 6 0
      keyboards/monsgeek/m5/info.json
  34. 1 2
      keyboards/monsgeek/m5/rules.mk
  35. 6 0
      keyboards/monsgeek/m6/info.json
  36. 1 2
      keyboards/monsgeek/m6/rules.mk
  37. 6 0
      keyboards/projectd/65/projectd_65_ansi/info.json
  38. 1 2
      keyboards/projectd/65/projectd_65_ansi/rules.mk

+ 6 - 0
keyboards/akko/5108/info.json

@@ -26,6 +26,12 @@
         "rows": ["B15", "C6", "C7", "C8", "C9", "A8"]
     },
     "diode_direction": "ROW2COL",
+    "eeprom": {
+        "driver": "wear_leveling",
+        "wear_leveling": {
+            "driver": "spi_flash"
+        }
+    },
     "indicators": {
         "num_lock": "A15",
         "caps_lock": "C10"

+ 1 - 2
keyboards/akko/5108/rules.mk

@@ -1,2 +1 @@
-EEPROM_DRIVER = wear_leveling
-WEAR_LEVELING_DRIVER = spi_flash
+# This file intentionally left blank

+ 6 - 0
keyboards/akko/acr87/info.json

@@ -26,6 +26,12 @@
         "rows": [ "B15", "C6", "C7", "C8", "C9", "A8"]
     },
     "diode_direction": "ROW2COL",
+    "eeprom": {
+        "driver": "wear_leveling",
+        "wear_leveling": {
+            "driver": "spi_flash"
+        }
+    },
     "rgb_matrix": {
         "driver": "is31fl3733",
         "max_brightness": 180,

+ 1 - 3
keyboards/akko/acr87/rules.mk

@@ -1,3 +1 @@
-EEPROM_DRIVER = wear_leveling
-WEAR_LEVELING_DRIVER = spi_flash
-
+# This file intentionally left blank

+ 6 - 0
keyboards/akko/top40/info.json

@@ -26,6 +26,12 @@
         "rows": ["C7", "C8", "C9", "A8"]
     },
     "diode_direction": "ROW2COL",
+    "eeprom": {
+        "driver": "wear_leveling",
+        "wear_leveling": {
+            "driver": "spi_flash"
+        }
+    },
     "rgb_matrix": {
         "driver": "is31fl3733",
         "max_brightness": 180,

+ 1 - 6
keyboards/akko/top40/rules.mk

@@ -1,6 +1 @@
-# Build Options
-#   change yes to no to disable
-#
-EEPROM_DRIVER = wear_leveling
-WEAR_LEVELING_DRIVER = spi_flash
-
+# This file intentionally left blank

+ 6 - 0
keyboards/annepro2/c15/info.json

@@ -3,6 +3,12 @@
     "usb": {
         "pid": "0xAC15"
     },
+    "eeprom": {
+        "driver": "wear_leveling",
+        "wear_leveling": {
+            "driver": "spi_flash"
+        }
+    },
     "rgb_matrix": {
         "driver": "custom"
     },

+ 0 - 4
keyboards/annepro2/c15/rules.mk

@@ -26,10 +26,6 @@ BACKLIGHT_ENABLE = no       # Enable keyboard backlight functionality
 RGBLIGHT_ENABLE = no        # Enable keyboard RGB underglow
 AUDIO_ENABLE = no           # Audio output
 
-# Wear-levelling driver
-EEPROM_DRIVER = wear_leveling
-WEAR_LEVELING_DRIVER = spi_flash
-
 # Custom RGB matrix handling
 RGB_MATRIX_ENABLE = yes
 

+ 6 - 0
keyboards/annepro2/c18/info.json

@@ -3,6 +3,12 @@
     "usb": {
         "pid": "0xAC18"
     },
+    "eeprom": {
+        "driver": "wear_leveling",
+        "wear_leveling": {
+            "driver": "spi_flash"
+        }
+    },
     "rgb_matrix": {
         "driver": "custom"
     },

+ 0 - 4
keyboards/annepro2/c18/rules.mk

@@ -26,10 +26,6 @@ BACKLIGHT_ENABLE = no       # Enable keyboard backlight functionality
 RGBLIGHT_ENABLE = no        # Enable keyboard RGB underglow
 AUDIO_ENABLE = no           # Audio output
 
-# Wear-levelling driver
-EEPROM_DRIVER = wear_leveling
-WEAR_LEVELING_DRIVER = spi_flash
-
 # Custom RGB matrix handling
 RGB_MATRIX_ENABLE = yes
 

+ 4 - 1
keyboards/chosfox/cf81/info.json

@@ -10,7 +10,10 @@
         "suspend_wakeup_delay": 400
     },
     "eeprom": {
-        "driver": "wear_leveling"
+        "driver": "wear_leveling",
+        "wear_leveling": {
+            "driver": "spi_flash"
+        }
     },
     "processor": "WB32FQ95",
     "bootloader": "wb32-dfu",

+ 1 - 1
keyboards/chosfox/cf81/rules.mk

@@ -1 +1 @@
-WEAR_LEVELING_DRIVER = spi_flash
+# This file intentionally left blank

+ 6 - 0
keyboards/gmmk/gmmk2/p96/ansi/info.json

@@ -19,6 +19,12 @@
         "rows": ["B0", "B1", "B2", "B3", "B4", "B5", "B6", "B7", "B8", "B9", "B10", "B11", "B12", "B13"]
     },
     "diode_direction": "COL2ROW",
+    "eeprom": {
+        "driver": "wear_leveling",
+        "wear_leveling": {
+            "driver": "spi_flash"
+        }
+    },
     "processor": "WB32F3G71",
     "bootloader": "wb32-dfu",
     "layouts": {

+ 0 - 2
keyboards/gmmk/gmmk2/p96/ansi/rules.mk

@@ -11,5 +11,3 @@ BACKLIGHT_ENABLE = no        # Enable keyboard backlight functionality.
 RGBLIGHT_ENABLE = no         # Enable keyboard RGB underglow.
 AUDIO_ENABLE = no            # Audio output.
 RGB_MATRIX_ENABLE = yes      # Enable RGB matrix effects.
-EEPROM_DRIVER = wear_leveling
-WEAR_LEVELING_DRIVER = spi_flash

+ 6 - 0
keyboards/gmmk/gmmk2/p96/iso/info.json

@@ -19,6 +19,12 @@
         "rows": ["B0", "B1", "B2", "B3", "B4", "B5", "B6", "B7", "B8", "B9", "B10", "B11", "B12", "B13"]
     },
     "diode_direction": "COL2ROW",
+    "eeprom": {
+        "driver": "wear_leveling",
+        "wear_leveling": {
+            "driver": "spi_flash"
+        }
+    },
     "processor": "WB32F3G71",
     "bootloader": "wb32-dfu",
     "layouts": {

+ 0 - 2
keyboards/gmmk/gmmk2/p96/iso/rules.mk

@@ -11,5 +11,3 @@ BACKLIGHT_ENABLE = no        # Enable keyboard backlight functionality.
 RGBLIGHT_ENABLE = no         # Enable keyboard RGB underglow.
 AUDIO_ENABLE = no            # Audio output.
 RGB_MATRIX_ENABLE = yes      # Enable RGB matrix effects.
-EEPROM_DRIVER = wear_leveling
-WEAR_LEVELING_DRIVER = spi_flash

+ 6 - 0
keyboards/gmmk/numpad/info.json

@@ -8,6 +8,12 @@
         "pid": "0x5088",
         "device_version": "0.0.1"
     },
+    "eeprom": {
+        "driver": "wear_leveling",
+        "wear_leveling": {
+            "driver": "spi_flash"
+        }
+    },
     "encoder": {
         "rotary": [
             {"pin_a": "A2", "pin_b": "A1"}

+ 0 - 3
keyboards/gmmk/numpad/rules.mk

@@ -16,9 +16,6 @@ MIDI_ENABLE = yes
 
 RGB_MATRIX_ENABLE = yes
 
-EEPROM_DRIVER = wear_leveling
-WEAR_LEVELING_DRIVER = spi_flash
-
 LTO_ENABLE = yes
 
 SRC += 	analog.c \

+ 6 - 0
keyboards/gmmk/pro/rev2/ansi/info.json

@@ -16,6 +16,12 @@
         "rows": ["B0", "B1", "B2", "B3", "B4", "B5", "B6", "B7", "B8", "B9", "B10"]
     },
     "diode_direction": "COL2ROW",
+    "eeprom": {
+        "driver": "wear_leveling",
+        "wear_leveling": {
+            "driver": "spi_flash"
+        }
+    },
     "encoder": {
         "rotary": [
             {"pin_a": "C15", "pin_b": "C14"}

+ 0 - 2
keyboards/gmmk/pro/rev2/ansi/rules.mk

@@ -12,5 +12,3 @@ RGBLIGHT_ENABLE = no        # Enable keyboard RGB underglow
 AUDIO_ENABLE = no           # Audio output
 ENCODER_ENABLE = yes
 RGB_MATRIX_ENABLE = yes
-EEPROM_DRIVER = wear_leveling
-WEAR_LEVELING_DRIVER = spi_flash

+ 6 - 0
keyboards/gmmk/pro/rev2/iso/info.json

@@ -16,6 +16,12 @@
         "rows": ["B0", "B1", "B2", "B3", "B4", "B5", "B6", "B7", "B8", "B9", "B10"]
     },
     "diode_direction": "COL2ROW",
+    "eeprom": {
+        "driver": "wear_leveling",
+        "wear_leveling": {
+            "driver": "spi_flash"
+        }
+    },
     "encoder": {
         "rotary": [
             {"pin_a": "C15", "pin_b": "C14"}

+ 0 - 2
keyboards/gmmk/pro/rev2/iso/rules.mk

@@ -15,5 +15,3 @@ RGBLIGHT_ENABLE = no        # Enable keyboard RGB underglow
 AUDIO_ENABLE = no           # Audio output
 ENCODER_ENABLE = yes
 RGB_MATRIX_ENABLE = yes
-EEPROM_DRIVER = wear_leveling
-WEAR_LEVELING_DRIVER = spi_flash

+ 6 - 0
keyboards/hfdkb/ac001/info.json

@@ -17,6 +17,12 @@
         "rows": ["B15"]
     },
     "diode_direction": "ROW2COL",
+    "eeprom": {
+        "driver": "wear_leveling",
+        "wear_leveling": {
+            "driver": "spi_flash"
+        }
+    },
     "ws2812": {
         "pin": "A1"
     },

+ 0 - 2
keyboards/hfdkb/ac001/rules.mk

@@ -10,5 +10,3 @@ NKRO_ENABLE = yes           # Enable N-Key Rollover
 BACKLIGHT_ENABLE = no       # Enable keyboard backlight functionality
 RGBLIGHT_ENABLE = no       # Enable keyboard RGB underglow
 RGB_MATRIX_ENABLE = yes
-EEPROM_DRIVER = wear_leveling
-WEAR_LEVELING_DRIVER = spi_flash

+ 6 - 0
keyboards/horrortroll/handwired_k552/info.json

@@ -20,6 +20,12 @@
         "rows": ["C12", "C10", "A10", "A8", "C8", "C9"]
     },
     "diode_direction": "ROW2COL",
+    "eeprom": {
+        "driver": "wear_leveling",
+        "wear_leveling": {
+            "driver": "spi_flash"
+        }
+    },
     "community_layouts": ["tkl_ansi"],
     "layouts": {
         "LAYOUT_tkl_ansi": {

+ 0 - 4
keyboards/horrortroll/handwired_k552/rules.mk

@@ -32,7 +32,3 @@ RGB_MATRIX_ENABLE = yes
 # OLED enabled
 OLED_ENABLE = yes
 WPM_ENABLE = yes
-
-# Wear-levelling driver
-EEPROM_DRIVER = wear_leveling
-WEAR_LEVELING_DRIVER = spi_flash

+ 6 - 0
keyboards/inland/kb83/info.json

@@ -18,6 +18,12 @@
         "rows": ["B15", "C6", "C7", "C8", "C9", "A8"]
     },
     "diode_direction": "ROW2COL",
+    "eeprom": {
+        "driver": "wear_leveling",
+        "wear_leveling": {
+            "driver": "spi_flash"
+        }
+    },
     "encoder": {
         "rotary": [
             {"pin_a": "B14", "pin_b": "B13", "resolution": 4}

+ 0 - 2
keyboards/inland/kb83/rules.mk

@@ -14,6 +14,4 @@ AUDIO_ENABLE = no           # Audio output
 DIP_SWITCH_ENABLE = yes		# DPI Switch
 ENCODER_ENABLE = yes
 RGB_MATRIX_ENABLE = yes
-EEPROM_DRIVER = wear_leveling
-WEAR_LEVELING_DRIVER = spi_flash
 #RGB_MATRIX_CUSTOM_USER = yes #Add turnoff LED

+ 7 - 1
keyboards/inland/mk47/info.json

@@ -25,6 +25,13 @@
         "cols": ["C1","C2","C3","A0","A1","A2","A3","A4","A5","A6","A7","C4"],
         "rows": ["C6", "C7", "C8", "C9"]
     },
+    "diode_direction": "ROW2COL",
+    "eeprom": {
+        "driver": "wear_leveling",
+        "wear_leveling": {
+            "driver": "spi_flash"
+        }
+    },
     "rgb_matrix": {
         "driver": "is31fl3733",
         "max_brightness": 200,
@@ -99,7 +106,6 @@
             { "flags": 4, "matrix": [3, 11],  "x": 224, "y": 64}
         ]
     },
-    "diode_direction": "ROW2COL",
     "layouts": {
         "LAYOUT": {
             "layout": [

+ 1 - 2
keyboards/inland/mk47/rules.mk

@@ -1,2 +1 @@
-EEPROM_DRIVER = wear_leveling
-WEAR_LEVELING_DRIVER = spi_flash
+# This file intentionally left blank

+ 6 - 0
keyboards/monsgeek/m1/info.json

@@ -26,6 +26,12 @@
         "rows": ["B15", "C6", "C7", "C8", "C9", "A8"]
     },
     "diode_direction": "ROW2COL",
+    "eeprom": {
+        "driver": "wear_leveling",
+        "wear_leveling": {
+            "driver": "spi_flash"
+        }
+    },
     "encoder": {
         "rotary": [
             {"pin_a": "B14", "pin_b": "B13"}

+ 1 - 6
keyboards/monsgeek/m1/rules.mk

@@ -1,6 +1 @@
-# Build Options
-#   change yes to no to disable
-#
-EEPROM_DRIVER = wear_leveling
-WEAR_LEVELING_DRIVER = spi_flash
-
+# This file intentionally left blank

+ 6 - 0
keyboards/monsgeek/m5/info.json

@@ -25,6 +25,12 @@
         "rows": ["B15", "C6", "C7", "C8", "C9", "A8"]
     },
     "diode_direction": "ROW2COL",
+    "eeprom": {
+        "driver": "wear_leveling",
+        "wear_leveling": {
+            "driver": "spi_flash"
+        }
+    },
     "indicators": {
         "num_lock":"A15",
         "caps_lock": "C10"

+ 1 - 2
keyboards/monsgeek/m5/rules.mk

@@ -1,2 +1 @@
-EEPROM_DRIVER = wear_leveling
-WEAR_LEVELING_DRIVER = spi_flash
+# This file intentionally left blank

+ 6 - 0
keyboards/monsgeek/m6/info.json

@@ -25,6 +25,12 @@
         "rows": ["C6", "C7", "C8", "C9", "A8"]
     },
     "diode_direction": "ROW2COL",
+    "eeprom": {
+        "driver": "wear_leveling",
+        "wear_leveling": {
+            "driver": "spi_flash"
+        }
+    },
     "rgb_matrix": {
         "driver": "is31fl3733",
         "max_brightness": 200,

+ 1 - 2
keyboards/monsgeek/m6/rules.mk

@@ -1,2 +1 @@
-EEPROM_DRIVER = wear_leveling
-WEAR_LEVELING_DRIVER = spi_flash
+# This file intentionally left blank

+ 6 - 0
keyboards/projectd/65/projectd_65_ansi/info.json

@@ -10,6 +10,12 @@
     "dynamic_keymap": {
         "layer_count": 13
     },
+    "eeprom": {
+        "driver": "wear_leveling",
+        "wear_leveling": {
+            "driver": "spi_flash"
+        }
+    },
     "features": {
         "bootmagic": true,
         "command": false,

+ 1 - 2
keyboards/projectd/65/projectd_65_ansi/rules.mk

@@ -1,2 +1 @@
-EEPROM_DRIVER = wear_leveling
-WEAR_LEVELING_DRIVER = spi_flash
+# This file intentionally left blank