summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/config.h7
-rw-r--r--include/keyboard_config.h4
2 files changed, 11 insertions, 0 deletions
diff --git a/include/config.h b/include/config.h
index 6b884a8948..c163ee5bb5 100644
--- a/include/config.h
+++ b/include/config.h
@@ -1831,6 +1831,13 @@
#undef CONFIG_KEYBOARD_COL2_INVERTED
/*
+ * Keyboards with the assistant key also move the refresh key matrix to row 3
+ * instead of row 2. This is used by the boot key detection code to determine
+ * if the refresh key is held down at boot.
+ */
+#undef CONFIG_KEYBOARD_REFRESH_ROW3
+
+/*
* Config KSO to start from a different KSO pin. This is to allow some chips
* to use alternate functions on KSO pins.
*/
diff --git a/include/keyboard_config.h b/include/keyboard_config.h
index 6e6fcef7f8..b4aa21ad99 100644
--- a/include/keyboard_config.h
+++ b/include/keyboard_config.h
@@ -33,7 +33,11 @@
#define KEYBOARD_ROW_LEFT_ALT 6
#define KEYBOARD_MASK_LEFT_ALT KEYBOARD_ROW_TO_MASK(KEYBOARD_ROW_LEFT_ALT)
#define KEYBOARD_COL_REFRESH 2
+#ifdef CONFIG_KEYBOARD_REFRESH_ROW3
+#define KEYBOARD_ROW_REFRESH 3
+#else
#define KEYBOARD_ROW_REFRESH 2
+#endif
#define KEYBOARD_MASK_REFRESH KEYBOARD_ROW_TO_MASK(KEYBOARD_ROW_REFRESH)
#define KEYBOARD_COL_RIGHT_ALT 10
#define KEYBOARD_ROW_RIGHT_ALT 0