19 unsigned int fallback,
24 if (index >= lut_size)
47 printk(
BIOS_ERR,
"ITE: Incorrect ports defined in devicetree.cb.\n");
55 printk(
BIOS_ERR,
"ITE: Expected chip ID 0x%04x, but got 0x%04x instead.\n",
107 const uint8_t fn_ctrl_swap[] = {
133 if (
CONFIG(EC_STARLABS_MAX_CHARGE))
155 if (
CONFIG(EC_STARLABS_FAN))
171 const uint8_t fn_lock_state[] = {
191 const uint8_t trackpad_state[] = {
211 const uint8_t kbl_brightness[] = {
218 if (
CONFIG(EC_STARLABS_KBL_LEVELS))
275 0xfffe, 0xfffe, 0xfffe, 0xfffe, },
#define ECRAM_KBL_TIMEOUT
#define ECRAM_TRACKPAD_STATE
#define ECRAM_FN_LOCK_STATE
#define ECRAM_KBL_BRIGHTNESS
#define ECRAM_FN_CTRL_REVERSE
#define printk(level,...)
int ec_write(u8 addr, u8 data)
#define ECRAM_MINOR_VERSION
#define TRACKPAD_DISABLED
#define ECRAM_MAJOR_VERSION
static void noop_read_resources(struct device *dev)
Standard device operations function pointers shims.
static void noop_set_resources(struct device *dev)
static uint16_t ec_get_chip_id(unsigned int port)
static void enable_dev(struct device *dev)
static struct device_operations ops
uint16_t ec_get_version(void)
static void merlin_init(struct device *dev)
static struct pnp_info pnp_dev_info[]
struct chip_operations ec_starlabs_merlin_ops
static uint8_t get_ec_value_from_option(const char *name, unsigned int fallback, const uint8_t *lut, size_t lut_size)
uint8_t pc_keyboard_init(uint8_t probe_aux)
#define BIOS_ERR
BIOS_ERR - System in incomplete state.
unsigned int get_uint_option(const char *name, const unsigned int fallback)
static u8 pnp_read_index(u16 port, u8 reg)
void pnp_enable_devices(struct device *base_dev, struct device_operations *ops, unsigned int functions, struct pnp_info *info)
void(* init)(struct device *dev)