19 unsigned int fallback,
24 if (index >= lut_size)
46 printk(
BIOS_ERR,
"NUVOTON: Incorrect ports defined in devicetree.cb.\n");
47 printk(
BIOS_ERR,
"NUVOTON: Serious operational issues will arise.\n");
54 printk(
BIOS_ERR,
"NUVOTON: Expected chip ID 0x%04x, but got 0x%04x instead.\n",
106 const uint8_t fn_ctrl_swap[] = {
132 if (
CONFIG(EC_STARLABS_MAX_CHARGE))
154 if (
CONFIG(EC_STARLABS_FAN))
170 const uint8_t fn_lock_state[] = {
190 const uint8_t trackpad_state[] = {
210 const uint8_t kbl_brightness[] = {
217 if (
CONFIG(EC_STARLABS_KBL_LEVELS))
#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 NUVOTON_FIXED_ADDR
#define ECRAM_MAJOR_VERSION
#define NUVOTON_CHIPID_VAL
static void noop_read_resources(struct device *dev)
Standard device operations function pointers shims.
static void noop_set_resources(struct device *dev)
uint8_t pc_keyboard_init(uint8_t probe_aux)
#define BIOS_ERR
BIOS_ERR - System in incomplete state.
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)
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)