mirror of
https://github.com/team-infusion-developers/android_kernel_samsung_msm8976.git
synced 2024-10-31 18:09:19 +00:00
613d0a748a
Add AWINIC RGB LED driver support. This LED controller is connected to the host processor via I2C. Change-Id: Ib0ba6abced6eac605bc55129208a8583d874c325 Signed-off-by: Mao Li <maol@codeaurora.org>
38 lines
1 KiB
C
38 lines
1 KiB
C
/*
|
|
* Copyright (c) 2015, The Linux Foundation. All rights reserved.
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License version 2 and
|
|
* only version 2 as published by the Free Software Foundation.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
*/
|
|
|
|
#ifndef __LINUX_AW2013_LED_H__
|
|
#define __LINUX_AW2013_LED_H__
|
|
|
|
/* The definition of each time described as shown in figure.
|
|
* /-----------\
|
|
* / | \
|
|
* /| | |\
|
|
* / | | | \-----------
|
|
* |hold_time_ms | |
|
|
* | | |
|
|
* rise_time_ms fall_time_ms |
|
|
* off_time_ms
|
|
*/
|
|
|
|
struct aw2013_platform_data {
|
|
int max_current;
|
|
int rise_time_ms;
|
|
int hold_time_ms;
|
|
int fall_time_ms;
|
|
int off_time_ms;
|
|
struct aw2013_led *led;
|
|
};
|
|
|
|
#endif
|