Migrate WEAR_LEVELING_*_SIZE to info.json (#22010)
This commit is contained in:
parent
36b4e290c8
commit
00feff656f
58 changed files with 89 additions and 120 deletions
|
|
@ -35,7 +35,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 IS31FL3733_DRIVER_COUNT 2
|
||||
|
|
|
|||
|
|
@ -29,7 +29,8 @@
|
|||
"eeprom": {
|
||||
"driver": "wear_leveling",
|
||||
"wear_leveling": {
|
||||
"driver": "spi_flash"
|
||||
"driver": "spi_flash",
|
||||
"backing_size": 8192
|
||||
}
|
||||
},
|
||||
"indicators": {
|
||||
|
|
|
|||
|
|
@ -32,7 +32,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 IS31FL3733_DRIVER_COUNT 3
|
||||
|
|
|
|||
|
|
@ -29,7 +29,8 @@
|
|||
"eeprom": {
|
||||
"driver": "wear_leveling",
|
||||
"wear_leveling": {
|
||||
"driver": "spi_flash"
|
||||
"driver": "spi_flash",
|
||||
"backing_size": 8192
|
||||
}
|
||||
},
|
||||
"rgb_matrix": {
|
||||
|
|
|
|||
|
|
@ -32,7 +32,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 IS31FL3733_DRIVER_COUNT 2
|
||||
|
|
|
|||
|
|
@ -29,7 +29,8 @@
|
|||
"eeprom": {
|
||||
"driver": "wear_leveling",
|
||||
"wear_leveling": {
|
||||
"driver": "spi_flash"
|
||||
"driver": "spi_flash",
|
||||
"backing_size": 8192
|
||||
}
|
||||
},
|
||||
"rgb_matrix": {
|
||||
|
|
|
|||
|
|
@ -57,7 +57,3 @@
|
|||
#define EXTERNAL_FLASH_SECTOR_SIZE 4096
|
||||
#define EXTERNAL_FLASH_BLOCK_SIZE 4096
|
||||
#define EXTERNAL_FLASH_SIZE (256 * 1024) // 2M-bit flash size
|
||||
|
||||
// Wear-leveling driver configuration
|
||||
#define WEAR_LEVELING_LOGICAL_SIZE 1024
|
||||
#define WEAR_LEVELING_BACKING_SIZE (WEAR_LEVELING_LOGICAL_SIZE * 2)
|
||||
|
|
|
|||
|
|
@ -6,7 +6,8 @@
|
|||
"eeprom": {
|
||||
"driver": "wear_leveling",
|
||||
"wear_leveling": {
|
||||
"driver": "spi_flash"
|
||||
"driver": "spi_flash",
|
||||
"backing_size": 2048
|
||||
}
|
||||
},
|
||||
"rgb_matrix": {
|
||||
|
|
|
|||
|
|
@ -55,7 +55,3 @@
|
|||
#define EXTERNAL_FLASH_SECTOR_SIZE 4096
|
||||
#define EXTERNAL_FLASH_BLOCK_SIZE 4096
|
||||
#define EXTERNAL_FLASH_SIZE (256 * 1024) // 2M-bit flash size
|
||||
|
||||
// Wear-leveling driver configuration
|
||||
#define WEAR_LEVELING_LOGICAL_SIZE 1024
|
||||
#define WEAR_LEVELING_BACKING_SIZE (WEAR_LEVELING_LOGICAL_SIZE * 2)
|
||||
|
|
|
|||
|
|
@ -6,7 +6,8 @@
|
|||
"eeprom": {
|
||||
"driver": "wear_leveling",
|
||||
"wear_leveling": {
|
||||
"driver": "spi_flash"
|
||||
"driver": "spi_flash",
|
||||
"backing_size": 2048
|
||||
}
|
||||
},
|
||||
"rgb_matrix": {
|
||||
|
|
|
|||
|
|
@ -3,14 +3,6 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
/*
|
||||
* Wear Leveling EEPROM Emulation
|
||||
*/
|
||||
|
||||
#define WEAR_LEVELING_LOGICAL_SIZE 2048 // Number of bytes "exposed" to the rest of QMK and denotes the size of the usable EEPROM.
|
||||
#define WEAR_LEVELING_BACKING_SIZE (WEAR_LEVELING_LOGICAL_SIZE * 2) // Number of bytes used by the wear-leveling algorithm for its underlying storage, and needs to be a multiple of the logical size.
|
||||
|
||||
|
||||
/*
|
||||
* RGB Matrix
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -24,6 +24,11 @@
|
|||
"pid": "0x426E",
|
||||
"device_version": "1.0.0"
|
||||
},
|
||||
"eeprom": {
|
||||
"wear_leveling": {
|
||||
"backing_size": 4096
|
||||
}
|
||||
},
|
||||
"ws2812": {
|
||||
"pin": "B15"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -1,5 +1 @@
|
|||
# Copyright 2022 Binepad (@binpad)
|
||||
# SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
EPROM_DRIVER = wear_leveling
|
||||
WEAR_LEVELING_DRIVER = embedded_flash
|
||||
# This file intentionally left blank
|
||||
|
|
@ -1,12 +0,0 @@
|
|||
// Copyright 2023 Binepad (@binepad)
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
#pragma once
|
||||
|
||||
|
||||
/*
|
||||
* Wear Leveling EEPROM Emulation
|
||||
*/
|
||||
|
||||
#define WEAR_LEVELING_LOGICAL_SIZE 2048 // Number of bytes "exposed" to the rest of QMK and denotes the size of the usable EEPROM.
|
||||
#define WEAR_LEVELING_BACKING_SIZE (WEAR_LEVELING_LOGICAL_SIZE * 2) // Number of bytes used by the wear-leveling algorithm for its underlying storage, and needs to be a multiple of the logical size.
|
||||
|
|
@ -6,6 +6,11 @@
|
|||
"cols": ["A1", "A2", "A6"],
|
||||
"rows": ["B6", "B7", "B2"]
|
||||
},
|
||||
"eeprom": {
|
||||
"wear_leveling": {
|
||||
"backing_size": 4096
|
||||
}
|
||||
},
|
||||
"processor": "STM32F103",
|
||||
"usb": {
|
||||
"device_version": "2.0.0"
|
||||
|
|
|
|||
|
|
@ -1,7 +0,0 @@
|
|||
// Copyright 2022 BINEPAD (@binepad)
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
#pragma once
|
||||
|
||||
#define WEAR_LEVELING_LOGICAL_SIZE 1024
|
||||
#define WEAR_LEVELING_BACKING_SIZE (WEAR_LEVELING_LOGICAL_SIZE * 2)
|
||||
|
|
@ -32,7 +32,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 IS31FL3733_DRIVER_COUNT 2
|
||||
|
|
|
|||
|
|
@ -12,7 +12,8 @@
|
|||
"eeprom": {
|
||||
"driver": "wear_leveling",
|
||||
"wear_leveling": {
|
||||
"driver": "spi_flash"
|
||||
"driver": "spi_flash",
|
||||
"backing_size": 8192
|
||||
}
|
||||
},
|
||||
"processor": "WB32FQ95",
|
||||
|
|
|
|||
|
|
@ -22,7 +22,8 @@
|
|||
"eeprom": {
|
||||
"driver": "wear_leveling",
|
||||
"wear_leveling": {
|
||||
"driver": "spi_flash"
|
||||
"driver": "spi_flash",
|
||||
"backing_size": 2048
|
||||
}
|
||||
},
|
||||
"processor": "WB32F3G71",
|
||||
|
|
|
|||
|
|
@ -25,7 +25,6 @@
|
|||
|
||||
/* External spi flash */
|
||||
#define EXTERNAL_FLASH_SPI_SLAVE_SELECT_PIN B14
|
||||
#define WEAR_LEVELING_BACKING_SIZE 2048
|
||||
|
||||
/* SPI Config for LED Driver */
|
||||
#define SPI_DRIVER SPIDQ
|
||||
|
|
|
|||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue