System76 common board directory (#53)
* Move configuration for battery into board.mk * lemp9: remove tcpm code * Move touchpad to its own module * Add kbled_reset to all platforms, move items to run on CPU reset to a function * Add defines for battery and charger address * Add I2C_0 export to it5570e * Move common system76 board functions into src/board/system76/common
This commit is contained in:
11
src/board/system76/common/keymap.c
Normal file
11
src/board/system76/common/keymap.c
Normal file
@ -0,0 +1,11 @@
|
||||
#include <board/keymap.h>
|
||||
#include <common/debug.h>
|
||||
|
||||
uint16_t keymap(int output, int input, int layer) {
|
||||
if (output < KM_OUT && input < KM_IN && layer < KM_LAY) {
|
||||
return KEYMAP[layer][output][input];
|
||||
} else {
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user