From 392e8802486cb573b916e746010e141a75f507e6 Mon Sep 17 00:00:00 2001 From: Kevin Date: Sat, 15 Nov 2014 09:58:27 +0800 Subject: init android origin source code --- ANDROID_3.4.5/include/linux/leds-bd2802.h | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 ANDROID_3.4.5/include/linux/leds-bd2802.h (limited to 'ANDROID_3.4.5/include/linux/leds-bd2802.h') diff --git a/ANDROID_3.4.5/include/linux/leds-bd2802.h b/ANDROID_3.4.5/include/linux/leds-bd2802.h new file mode 100644 index 00000000..42f854a1 --- /dev/null +++ b/ANDROID_3.4.5/include/linux/leds-bd2802.h @@ -0,0 +1,26 @@ +/* + * leds-bd2802.h - RGB LED Driver + * + * Copyright (C) 2009 Samsung Electronics + * Kim Kyuwon + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation. + * + * Datasheet: http://www.rohm.com/products/databook/driver/pdf/bd2802gu-e.pdf + * + */ +#ifndef _LEDS_BD2802_H_ +#define _LEDS_BD2802_H_ + +struct bd2802_led_platform_data{ + int reset_gpio; + u8 rgb_time; +}; + +#define RGB_TIME(slopedown, slopeup, waveform) \ + ((slopedown) << 6 | (slopeup) << 4 | (waveform)) + +#endif /* _LEDS_BD2802_H_ */ + -- cgit