driver: input: add input driver for rts5912
Add input driver for Realtek rts5912. Signed-off-by: Lin Yu-Cheng <lin_yu_cheng@realtek.com>
This commit is contained in:
parent
d45396a6bb
commit
2d541a0777
10 changed files with 381 additions and 0 deletions
28
soc/realtek/ec/rts5912/reg/reg_kbm.h
Normal file
28
soc/realtek/ec/rts5912/reg/reg_kbm.h
Normal file
|
@ -0,0 +1,28 @@
|
|||
/*
|
||||
* Copyright (c) 2025 Realtek, SIBG-SD7
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
#ifndef ZEPHYR_SOC_REALTEK_RTS5912_REG_KBM_H
|
||||
#define ZEPHYR_SOC_REALTEK_RTS5912_REG_KBM_H
|
||||
|
||||
/**
|
||||
* @brief Keyboard Matrix Controller (KBM)
|
||||
*/
|
||||
|
||||
struct kbm_regs {
|
||||
uint32_t scan_out;
|
||||
uint32_t scan_in;
|
||||
uint32_t int_en;
|
||||
uint32_t ctrl;
|
||||
};
|
||||
|
||||
#define KBM_CTRL_KSOTYPE_Msk BIT(0)
|
||||
#define KBM_CTRL_KSI8EN_Msk BIT(1)
|
||||
#define KBM_CTRL_KSI9EN_Msk BIT(2)
|
||||
#define KBM_CTRL_KSO18EN_Msk BIT(16)
|
||||
#define KBM_CTRL_KSO19EN_Msk BIT(17)
|
||||
#define KBM_CTRL_KSIINTSTS_Msk BIT(18)
|
||||
|
||||
#endif /* ZEPHYR_SOC_REALTEK_RTS5912_REG_KBM_H */
|
Loading…
Add table
Add a link
Reference in a new issue