diff options
Diffstat (limited to 'driver/led/mp3385.h')
-rw-r--r-- | driver/led/mp3385.h | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/driver/led/mp3385.h b/driver/led/mp3385.h new file mode 100644 index 0000000000..9463b06aa5 --- /dev/null +++ b/driver/led/mp3385.h @@ -0,0 +1,35 @@ +/* Copyright 2021 The Chromium OS Authors. All rights reserved. + * Use of this source code is governed by a BSD-style license that can be + * found in the LICENSE file. + * + * MPS MP3385 LED driver. + */ + +#ifndef __CROS_EC_MP3385_H +#define __CROS_EC_MP3385_H + +#include "gpio.h" +#include "common.h" + +/* + * Overridable board initialization. Should be overridden by a board + * specific function if the default is not appropriate + */ +void mp3385_board_init(void); + +/** + * Update mp3385 configuration array (mp3385_conf). + * + * @param offset: Offset of the register to be set. + * @param data: Value to be set. + * @return EC_SUCCESS or EC_ERROR_* for errors. + */ +int mp3385_set_config(int offset, int data); + +#ifndef MP3385_POWER_BACKLIGHT_DELAY +#define MP3385_POWER_BACKLIGHT_DELAY SECOND +#endif + +void mp3385_interrupt(enum gpio_signal signal); + +#endif |