Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate WEAR_LEVELING_* to info.json #23077

Merged
merged 1 commit into from
Feb 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions keyboards/dark/magnum_ergo_1/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,3 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define LED_INDICATOR_3 B0
#define LED_INDICATOR_4 A5
#define LED_INDICATOR_5 C15

#define WEAR_LEVELING_LOGICAL_SIZE 2048
#define WEAR_LEVELING_BACKING_SIZE 4096
5 changes: 5 additions & 0 deletions keyboards/dark/magnum_ergo_1/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@
"build": {
"lto": true
},
"eeprom": {
"wear_leveling": {
"backing_size": 4096
}
},
"features": {
"audio": false,
"backlight": true,
Expand Down
1 change: 0 additions & 1 deletion keyboards/darkproject/kd83a_bfg_edition/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@

/* External spi flash */
#define EXTERNAL_FLASH_SPI_SLAVE_SELECT_PIN B14
#define WEAR_LEVELING_BACKING_SIZE (8 * 1024)

/* SPI Config for LED Driver */
#define SPI_DRIVER SPIDQ
Expand Down
6 changes: 5 additions & 1 deletion keyboards/darkproject/kd83a_bfg_edition/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,11 @@
"vid": "0x342D"
},
"eeprom": {
"driver": "wear_leveling"
"driver": "wear_leveling",
"wear_leveling": {
"driver": "spi_flash",
"backing_size": 8192
}
},
"layouts": {
"LAYOUT": {
Expand Down
2 changes: 1 addition & 1 deletion keyboards/darkproject/kd83a_bfg_edition/rules.mk
Original file line number Diff line number Diff line change
@@ -1 +1 @@
WEAR_LEVELING_DRIVER = spi_flash
# This file intentionally left blank
4 changes: 0 additions & 4 deletions keyboards/keychron/c1_pro/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,6 @@

#pragma once

/* EEPROM Driver Configuration */
#define WEAR_LEVELING_LOGICAL_SIZE 2048
#define WEAR_LEVELING_BACKING_SIZE (WEAR_LEVELING_LOGICAL_SIZE * 2)

/* Increase I2C speed to 1000 KHz */
#define I2C1_TIMINGR_PRESC 0U
#define I2C1_TIMINGR_SCLDEL 3U
Expand Down
5 changes: 5 additions & 0 deletions keyboards/keychron/c1_pro/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@
"usb": {
"vid": "0x3434"
},
"eeprom": {
"wear_leveling": {
"backing_size": 4096
}
},
"features": {
"bootmagic": true,
"command": false,
Expand Down
4 changes: 0 additions & 4 deletions keyboards/keychron/c2_pro/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,6 @@

#pragma once

/* EEPROM Driver Configuration */
#define WEAR_LEVELING_LOGICAL_SIZE 2048
#define WEAR_LEVELING_BACKING_SIZE (WEAR_LEVELING_LOGICAL_SIZE * 2)

/* Increase I2C speed to 1000 KHz */
#define I2C1_TIMINGR_PRESC 0U
#define I2C1_TIMINGR_SCLDEL 3U
Expand Down
5 changes: 5 additions & 0 deletions keyboards/keychron/c2_pro/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@
"usb": {
"vid": "0x3434"
},
"eeprom": {
"wear_leveling": {
"backing_size": 4096
}
},
"features": {
"bootmagic": true,
"command": false,
Expand Down
4 changes: 0 additions & 4 deletions keyboards/keychron/q10/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,3 @@
#define SNLED27351_PHASE_CHANNEL SNLED27351_SCAN_PHASE_9_CHANNEL
#define SNLED27351_CURRENT_TUNE \
{ 0x98, 0x98, 0x4A, 0x98, 0x98, 0x4A, 0x98, 0x98, 0x4A, 0x98, 0x98, 0x4A }

/* EEPROM Driver Configuration */
#define WEAR_LEVELING_LOGICAL_SIZE 2048
#define WEAR_LEVELING_BACKING_SIZE (WEAR_LEVELING_LOGICAL_SIZE * 2)
5 changes: 5 additions & 0 deletions keyboards/keychron/q10/info.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
{
"eeprom": {
"wear_leveling": {
"backing_size": 4096
}
},
"dip_switch": {
"matrix_grid": [ [5, 5] ]
},
Expand Down
4 changes: 0 additions & 4 deletions keyboards/keychron/q11/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,6 @@
#define SNLED27351_CURRENT_TUNE \
{ 0x80, 0xFF, 0xFF, 0x80, 0xFF, 0xFF, 0x80, 0xFF, 0xFF, 0x80, 0xFF, 0xFF } // 300mA

/* EEPROM Driver Configuration */
#define WEAR_LEVELING_LOGICAL_SIZE 2048
#define WEAR_LEVELING_BACKING_SIZE (WEAR_LEVELING_LOGICAL_SIZE * 2)

/* Split Keyboard specific options. */
#define SERIAL_USART_TX_PIN A9 // USART TX pin

Expand Down
5 changes: 5 additions & 0 deletions keyboards/keychron/q11/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@
"dip_switch": {
"pins": ["A8"]
},
"eeprom": {
"wear_leveling": {
"backing_size": 4096
}
},
"features": {
"bootmagic": true,
"command": false,
Expand Down
2 changes: 0 additions & 2 deletions keyboards/keychron/q12/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,3 @@

#define SNLED27351_CURRENT_TUNE \
{ 0xAD, 0xAD, 0x55, 0xAD, 0xAD, 0x55, 0xAD, 0xAD, 0x55, 0xAD, 0xAD, 0x55 }

#define SCAN_COUNT_MAX 100
4 changes: 0 additions & 4 deletions keyboards/keychron/q1v2/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,6 @@
#define I2C1_TIMINGR_SCLH 15U
#define I2C1_TIMINGR_SCLL 51U

/* EEPROM Driver Configuration */
#define WEAR_LEVELING_LOGICAL_SIZE 2048
#define WEAR_LEVELING_BACKING_SIZE (WEAR_LEVELING_LOGICAL_SIZE * 2)

#define SNLED27351_PHASE_CHANNEL SNLED27351_SCAN_PHASE_9_CHANNEL
/* Set LED driver current */
#define SNLED27351_CURRENT_TUNE \
Expand Down
5 changes: 5 additions & 0 deletions keyboards/keychron/q1v2/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@
"rgb_matrix": true,
"dip_switch": true
},
"eeprom": {
"wear_leveling": {
"backing_size": 4096
}
},
"dip_switch": {
"matrix_grid": [ [5, 4] ]
},
Expand Down
4 changes: 0 additions & 4 deletions keyboards/keychron/q6/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,3 @@

#define SNLED27351_CURRENT_TUNE \
{ 0xA4, 0xA4, 0x52, 0xA4, 0xA4, 0x52, 0xA4, 0xA4, 0x52, 0xA4, 0xA4, 0x52 }

/* EEPROM Driver Configuration */
#define WEAR_LEVELING_LOGICAL_SIZE 2048
#define WEAR_LEVELING_BACKING_SIZE (WEAR_LEVELING_LOGICAL_SIZE * 2)
5 changes: 5 additions & 0 deletions keyboards/keychron/q6/info.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
{
"eeprom": {
"wear_leveling": {
"backing_size": 4096
}
},
"dip_switch": {
"matrix_grid": [ [5, 4] ]
},
Expand Down
4 changes: 0 additions & 4 deletions keyboards/keychron/q60/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,3 @@
{ 0xD8, 0xD8, 0x60, 0xD8, 0xD8, 0x60, 0xD8, 0xD8, 0x60, 0xD8, 0xD8, 0x60 }

#define DYNAMIC_KEYMAP_LAYER_COUNT 6

/* EEPROM Driver Configuration */
#define WEAR_LEVELING_LOGICAL_SIZE 2048
#define WEAR_LEVELING_BACKING_SIZE (WEAR_LEVELING_LOGICAL_SIZE * 2)
5 changes: 5 additions & 0 deletions keyboards/keychron/q60/info.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
{
"eeprom": {
"wear_leveling": {
"backing_size": 4096
}
},
"dip_switch": {
"matrix_grid": [ [4, 4] ]
},
Expand Down
4 changes: 0 additions & 4 deletions keyboards/keychron/q65/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,3 @@
{ 0xB8, 0xB8, 0x58, 0xB8, 0xB8, 0x58, 0xB8, 0xB8, 0x58, 0xB8, 0xB8, 0x58 }

#define DYNAMIC_KEYMAP_LAYER_COUNT 5

/* EEPROM Driver Configuration */
#define WEAR_LEVELING_LOGICAL_SIZE 2048
#define WEAR_LEVELING_BACKING_SIZE (WEAR_LEVELING_LOGICAL_SIZE * 2)
5 changes: 5 additions & 0 deletions keyboards/keychron/q65/info.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
{
"eeprom": {
"wear_leveling": {
"backing_size": 4096
}
},
"dip_switch": {
"matrix_grid": [ [4, 4] ]
},
Expand Down
4 changes: 0 additions & 4 deletions keyboards/keychron/q9_plus/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,5 @@
#define SNLED27351_CURRENT_TUNE \
{ 0xF8, 0xF8, 0x70, 0xF8, 0xF8, 0x70, 0xF8, 0xF8, 0x70, 0xF8, 0xF8, 0x70 }

/* EEPROM Driver Configuration */
#define WEAR_LEVELING_LOGICAL_SIZE 2048
#define WEAR_LEVELING_BACKING_SIZE (WEAR_LEVELING_LOGICAL_SIZE * 2)

/* Old default behavior of mod-taps */
#define HOLD_ON_OTHER_KEY_PRESS
5 changes: 5 additions & 0 deletions keyboards/keychron/q9_plus/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@
"nkro": true,
"rgb_matrix": true
},
"eeprom": {
"wear_leveling": {
"backing_size": 4096
}
},
"dip_switch": {
"matrix_grid": [ [3, 4] ]
},
Expand Down
4 changes: 0 additions & 4 deletions keyboards/keychron/s1/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,6 @@

#pragma once

/* EEPROM Driver Configuration */
#define WEAR_LEVELING_LOGICAL_SIZE 2048
#define WEAR_LEVELING_BACKING_SIZE (WEAR_LEVELING_LOGICAL_SIZE * 2)

/* Increase I2C speed to 1000 KHz */
#define I2C1_TIMINGR_PRESC 0U
#define I2C1_TIMINGR_SCLDEL 3U
Expand Down
5 changes: 5 additions & 0 deletions keyboards/keychron/s1/info.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
{
"eeprom": {
"wear_leveling": {
"backing_size": 4096
}
},
"dip_switch": {
"matrix_grid": [ [5, 4] ]
}
Expand Down
4 changes: 0 additions & 4 deletions keyboards/keychron/v1/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,3 @@
#define I2C1_TIMINGR_SCLL 51U

#define SNLED27351_PHASE_CHANNEL SNLED27351_SCAN_PHASE_9_CHANNEL

/* EEPROM Driver Configuration */
#define WEAR_LEVELING_LOGICAL_SIZE 2048
#define WEAR_LEVELING_BACKING_SIZE (WEAR_LEVELING_LOGICAL_SIZE * 2)
5 changes: 5 additions & 0 deletions keyboards/keychron/v1/info.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
{
"eeprom": {
"wear_leveling": {
"backing_size": 4096
}
},
"dip_switch": {
"matrix_grid": [ [5, 4] ]
},
Expand Down
4 changes: 0 additions & 4 deletions keyboards/keychron/v10/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,3 @@

#define SNLED27351_PHASE_CHANNEL SNLED27351_SCAN_PHASE_9_CHANNEL
#define SNLED27351_CURRENT_TUNE { 0x98, 0x98, 0x4A, 0x98, 0x98, 0x4A, 0x98, 0x98, 0x4A, 0x98, 0x98, 0x4A }

/* EEPROM Driver Configuration */
#define WEAR_LEVELING_LOGICAL_SIZE 2048
#define WEAR_LEVELING_BACKING_SIZE (WEAR_LEVELING_LOGICAL_SIZE * 2)
5 changes: 5 additions & 0 deletions keyboards/keychron/v10/info.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
{
"eeprom": {
"wear_leveling": {
"backing_size": 4096
}
},
"dip_switch": {
"matrix_grid": [ [5, 5] ]
},
Expand Down
4 changes: 0 additions & 4 deletions keyboards/keychron/v2/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,3 @@
#define SNLED27351_PHASE_CHANNEL SNLED27351_SCAN_PHASE_9_CHANNEL

#define DYNAMIC_KEYMAP_LAYER_COUNT 5

/* EEPROM Driver Configuration */
#define WEAR_LEVELING_LOGICAL_SIZE 2048
#define WEAR_LEVELING_BACKING_SIZE (WEAR_LEVELING_LOGICAL_SIZE * 2)
5 changes: 5 additions & 0 deletions keyboards/keychron/v2/info.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
{
"eeprom": {
"wear_leveling": {
"backing_size": 4096
}
},
"dip_switch": {
"matrix_grid": [ [4, 4] ]
},
Expand Down
4 changes: 0 additions & 4 deletions keyboards/keychron/v3/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,3 @@
#define I2C1_TIMINGR_SCLL 51U

#define SNLED27351_PHASE_CHANNEL SNLED27351_SCAN_PHASE_9_CHANNEL

/* EEPROM Driver Configuration */
#define WEAR_LEVELING_LOGICAL_SIZE 2048
#define WEAR_LEVELING_BACKING_SIZE (WEAR_LEVELING_LOGICAL_SIZE * 2)
5 changes: 5 additions & 0 deletions keyboards/keychron/v3/info.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
{
"eeprom": {
"wear_leveling": {
"backing_size": 4096
}
},
"dip_switch": {
"matrix_grid": [ [5, 4] ]
},
Expand Down
4 changes: 0 additions & 4 deletions keyboards/keychron/v4/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,3 @@
{ 0xD0, 0xD0, 0x60, 0xD0, 0xD0, 0x60, 0xD0, 0xD0, 0x60, 0xD0, 0xD0, 0x60 }

#define DYNAMIC_KEYMAP_LAYER_COUNT 5

/* EEPROM Driver Configuration */
#define WEAR_LEVELING_LOGICAL_SIZE 2048
#define WEAR_LEVELING_BACKING_SIZE (WEAR_LEVELING_LOGICAL_SIZE * 2)
5 changes: 5 additions & 0 deletions keyboards/keychron/v4/info.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
{
"eeprom": {
"wear_leveling": {
"backing_size": 4096
}
},
"dip_switch": {
"matrix_grid": [ [4, 4] ]
},
Expand Down
4 changes: 0 additions & 4 deletions keyboards/keychron/v5/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,3 @@

#define SNLED27351_CURRENT_TUNE \
{ 0xB6, 0xB6, 0x56, 0xB6, 0xB6, 0x56, 0xB6, 0xB6, 0x56, 0xB6, 0xB6, 0x56 }

/* EEPROM Driver Configuration */
#define WEAR_LEVELING_LOGICAL_SIZE 2048
#define WEAR_LEVELING_BACKING_SIZE (WEAR_LEVELING_LOGICAL_SIZE * 2)
5 changes: 5 additions & 0 deletions keyboards/keychron/v5/info.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
{
"eeprom": {
"wear_leveling": {
"backing_size": 4096
}
},
"dip_switch": {
"matrix_grid": [ [5, 4] ]
},
Expand Down
6 changes: 0 additions & 6 deletions keyboards/keychron/v6/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,3 @@

/* Limit the maximum brigtness current of colour white to 500mA */
#define SNLED27351_CURRENT_TUNE { 0xA8, 0xA8, 0x48, 0xA8, 0xA8, 0x48, 0xA8, 0xA8, 0x48, 0xA8, 0xA8, 0x48 }

#define SCAN_COUNT_MAX 100

/* EEPROM Driver Configuration */
#define WEAR_LEVELING_LOGICAL_SIZE 2048
#define WEAR_LEVELING_BACKING_SIZE (WEAR_LEVELING_LOGICAL_SIZE * 2)
5 changes: 5 additions & 0 deletions keyboards/keychron/v6/info.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
{
"eeprom": {
"wear_leveling": {
"backing_size": 4096
}
},
"dip_switch": {
"matrix_grid": [ [5, 4] ]
},
Expand Down
4 changes: 0 additions & 4 deletions keyboards/keychron/v7/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,3 @@
#define SNLED27351_CURRENT_TUNE { 0xFC, 0xFC, 0x70, 0xFC, 0xFC, 0x70, 0xFC, 0xFC, 0x70, 0xFC, 0xFC, 0x70 }

#define DYNAMIC_KEYMAP_LAYER_COUNT 5

/* EEPROM Driver Configuration */
#define WEAR_LEVELING_LOGICAL_SIZE 2048
#define WEAR_LEVELING_BACKING_SIZE (WEAR_LEVELING_LOGICAL_SIZE * 2)
Loading
Loading