summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
l---------board/bland1
-rw-r--r--board/hammer/board.c23
-rw-r--r--board/hammer/variants.h13
3 files changed, 37 insertions, 0 deletions
diff --git a/board/bland b/board/bland
new file mode 120000
index 0000000000..7f4a914148
--- /dev/null
+++ b/board/bland
@@ -0,0 +1 @@
+hammer \ No newline at end of file
diff --git a/board/hammer/board.c b/board/hammer/board.c
index 911909653d..a872ad2e56 100644
--- a/board/hammer/board.c
+++ b/board/hammer/board.c
@@ -345,11 +345,34 @@ static const struct ec_response_keybd_config zed_kb = {
.capabilities = KEYBD_CAP_SCRNLOCK_KEY,
};
+static const struct ec_response_keybd_config bland_kb = {
+ .num_top_row_keys = 10,
+ .action_keys = {
+ TK_BACK,
+ TK_REFRESH,
+ TK_FULLSCREEN,
+ TK_OVERVIEW,
+ TK_BRIGHTNESS_DOWN,
+ TK_BRIGHTNESS_UP,
+ /*
+ * TODO: this is a placeholder key before MIC_MUTE
+ * implemented.
+ */
+ TK_SNAPSHOT,
+ TK_VOL_MUTE,
+ TK_VOL_DOWN,
+ TK_VOL_UP,
+ },
+ .capabilities = KEYBD_CAP_SCRNLOCK_KEY,
+};
+
__override
const struct ec_response_keybd_config *board_vivaldi_keybd_config(void)
{
if (IS_ENABLED(BOARD_ZED) || IS_ENABLED(BOARD_STAR))
return &zed_kb;
+ if (IS_ENABLED(BOARD_BLAND))
+ return &bland_kb;
return NULL;
}
diff --git a/board/hammer/variants.h b/board/hammer/variants.h
index fbfa985ba9..f98c2a08a4 100644
--- a/board/hammer/variants.h
+++ b/board/hammer/variants.h
@@ -15,6 +15,8 @@
/* USB ID */
#ifdef BOARD_HAMMER
#define CONFIG_USB_PID 0x5022
+#elif defined(BOARD_BLAND)
+#define CONFIG_USB_PID 0x5056
#elif defined(BOARD_DON)
#define CONFIG_USB_PID 0x5050
#elif defined(BOARD_MAGNEMITE)
@@ -48,6 +50,17 @@
#define CONFIG_USB_HID_TOUCHPAD_PHYSICAL_MAX_X 1018 /* tenth of mm */
#define CONFIG_USB_HID_TOUCHPAD_PHYSICAL_MAX_Y 566 /* tenth of mm */
#define CONFIG_TOUCHPAD_VIRTUAL_SIZE (48*1024)
+#elif defined(BOARD_BLAND)
+#define CONFIG_USB_HID_KEYBOARD_VIVALDI
+#define CONFIG_USB_HID_KB_NUM_TOP_ROW_KEYS 10
+#define HAS_I2C_TOUCHPAD
+/* TODO: update correct parameters */
+#define CONFIG_USB_HID_TOUCHPAD_LOGICAL_MAX_X 3282
+#define CONFIG_USB_HID_TOUCHPAD_LOGICAL_MAX_Y 1793
+#define CONFIG_USB_HID_TOUCHPAD_LOGICAL_MAX_PRESSURE 511
+#define CONFIG_USB_HID_TOUCHPAD_PHYSICAL_MAX_X 1042 /* tenth of mm */
+#define CONFIG_USB_HID_TOUCHPAD_PHYSICAL_MAX_Y 569 /* tenth of mm */
+#define CONFIG_TOUCHPAD_VIRTUAL_SIZE (64*1024)
#elif defined(BOARD_DON)
#define HAS_I2C_TOUCHPAD
#define CONFIG_USB_HID_TOUCHPAD_LOGICAL_MAX_X 2925