summaryrefslogtreecommitdiff
path: root/keyboards/kinesis
diff options
context:
space:
mode:
authorRyan <fauxpark@gmail.com>2023-05-01 17:37:12 +1000
committerGitHub <noreply@github.com>2023-05-01 17:37:12 +1000
commit2944e938703e2049bb6262a0ab31e701d27e8ab3 (patch)
treea73caa75fafe8b7926e18886d603c032d246fcac /keyboards/kinesis
parent12d42cedd2624db0d5cfe6f538211f9dfcd19822 (diff)
Move `USB_MAX_POWER_CONSUMPTION` to data driven (#20648)
Diffstat (limited to 'keyboards/kinesis')
-rw-r--r--keyboards/kinesis/kint2pp/config.h5
-rw-r--r--keyboards/kinesis/kint2pp/info.json3
-rw-r--r--keyboards/kinesis/kint36/config.h4
-rw-r--r--keyboards/kinesis/kint36/info.json3
-rw-r--r--keyboards/kinesis/kint41/config.h4
-rw-r--r--keyboards/kinesis/kint41/info.json3
-rw-r--r--keyboards/kinesis/kintlc/config.h5
-rw-r--r--keyboards/kinesis/kintlc/info.json3
8 files changed, 8 insertions, 22 deletions
diff --git a/keyboards/kinesis/kint2pp/config.h b/keyboards/kinesis/kint2pp/config.h
deleted file mode 100644
index b81985f1ef..0000000000
--- a/keyboards/kinesis/kint2pp/config.h
+++ /dev/null
@@ -1,5 +0,0 @@
-#pragma once
-
-// The Teensy 2++ consumes about 60 mA of current at its full speed of 16 MHz as
-// per https://www.pjrc.com/teensy/low_power.html
-#define USB_MAX_POWER_CONSUMPTION 100
diff --git a/keyboards/kinesis/kint2pp/info.json b/keyboards/kinesis/kint2pp/info.json
index b2ddfb80b0..74d96d59e0 100644
--- a/keyboards/kinesis/kint2pp/info.json
+++ b/keyboards/kinesis/kint2pp/info.json
@@ -4,7 +4,8 @@
"usb": {
"vid": "0xFEED",
"pid": "0x6060",
- "device_version": "0.0.2"
+ "device_version": "0.0.2",
+ "max_power": 100
},
"matrix_pins": {
"cols": ["E7", "F0", "F7", "B1", "B3", "B0", "D5"],
diff --git a/keyboards/kinesis/kint36/config.h b/keyboards/kinesis/kint36/config.h
index 8b291df88e..94e523e9ef 100644
--- a/keyboards/kinesis/kint36/config.h
+++ b/keyboards/kinesis/kint36/config.h
@@ -16,8 +16,4 @@
#pragma once
-// The Teensy 3.6 consumes about 80 mA of current at its full speed of 180 MHz:
-// https://forum.pjrc.com/threads/47256-What-is-the-power-consumption-of-the-Teensy-3-6
-#define USB_MAX_POWER_CONSUMPTION 100
-
#define EEPROM_SIZE 4096
diff --git a/keyboards/kinesis/kint36/info.json b/keyboards/kinesis/kint36/info.json
index 2d71fc0eb3..815b6cb871 100644
--- a/keyboards/kinesis/kint36/info.json
+++ b/keyboards/kinesis/kint36/info.json
@@ -4,7 +4,8 @@
"usb": {
"vid": "0x1209",
"pid": "0x345C",
- "device_version": "0.0.1"
+ "device_version": "0.0.1",
+ "max_power": 100
},
"matrix_pins": {
"cols": ["B3", "D1", "C0", "D5", "C1", "B2", "D4"],
diff --git a/keyboards/kinesis/kint41/config.h b/keyboards/kinesis/kint41/config.h
index 74d1a8a78f..e620abd09e 100644
--- a/keyboards/kinesis/kint41/config.h
+++ b/keyboards/kinesis/kint41/config.h
@@ -16,10 +16,6 @@
#pragma once
-// The Teensy 4.1 consumes about 100 mA of current at its full speed of 600 MHz
-// as per https://www.pjrc.com/store/teensy41.html
-#define USB_MAX_POWER_CONSUMPTION 100
-
/* We use the i.MX RT1060 high-speed GPIOs (GPIO6-9) which are connected to the
* AHB bus (AHB_CLK_ROOT), which runs at the same speed as the ARM Core Clock,
* i.e. 600 MHz. See MIMXRT1062, page 949, 12.1 Chip-specific GPIO information.
diff --git a/keyboards/kinesis/kint41/info.json b/keyboards/kinesis/kint41/info.json
index 0a6424641a..1901ed1d3b 100644
--- a/keyboards/kinesis/kint41/info.json
+++ b/keyboards/kinesis/kint41/info.json
@@ -4,7 +4,8 @@
"usb": {
"vid": "0x1209",
"pid": "0x345C",
- "device_version": "0.0.1"
+ "device_version": "0.0.1",
+ "max_power": 100
},
"matrix_pins": {
"cols": ["LINE_PIN18", "LINE_PIN14", "LINE_PIN15", "LINE_PIN20", "LINE_PIN22", "LINE_PIN19", "LINE_PIN6"],
diff --git a/keyboards/kinesis/kintlc/config.h b/keyboards/kinesis/kintlc/config.h
index a5610a4c8c..e620abd09e 100644
--- a/keyboards/kinesis/kintlc/config.h
+++ b/keyboards/kinesis/kintlc/config.h
@@ -16,11 +16,6 @@
#pragma once
-// The Teensy LC power consumption is unknown as per
-// https://www.pjrc.com/store/teensylc.html but since
-// https://www.pjrc.com/store/teensy41.html says 100mA, let's go with half.
-#define USB_MAX_POWER_CONSUMPTION 50
-
/* We use the i.MX RT1060 high-speed GPIOs (GPIO6-9) which are connected to the
* AHB bus (AHB_CLK_ROOT), which runs at the same speed as the ARM Core Clock,
* i.e. 600 MHz. See MIMXRT1062, page 949, 12.1 Chip-specific GPIO information.
diff --git a/keyboards/kinesis/kintlc/info.json b/keyboards/kinesis/kintlc/info.json
index 6c8938ab35..da8e8f7e45 100644
--- a/keyboards/kinesis/kintlc/info.json
+++ b/keyboards/kinesis/kintlc/info.json
@@ -4,7 +4,8 @@
"usb": {
"vid": "0x1209",
"pid": "0x345C",
- "device_version": "0.0.1"
+ "device_version": "0.0.1",
+ "max_power": 50
},
"matrix_pins": {
"cols": ["LINE_PIN18", "LINE_PIN14", "LINE_PIN15", "LINE_PIN20", "LINE_PIN22", "LINE_PIN19", "LINE_PIN6"],