Linux Audio

Check our new training course

Loading...
v5.9
 1/* SPDX-License-Identifier: GPL-2.0-only */
 2/*
 3 * leds-bd2802.h - RGB LED Driver
 4 *
 5 * Copyright (C) 2009 Samsung Electronics
 6 * Kim Kyuwon <q1.kim@samsung.com>
 7 *
 
 
 
 
 8 * Datasheet: http://www.rohm.com/products/databook/driver/pdf/bd2802gu-e.pdf
 
 9 */
10#ifndef _LEDS_BD2802_H_
11#define _LEDS_BD2802_H_
12
13struct bd2802_led_platform_data{
 
14	u8	rgb_time;
15};
16
17#define RGB_TIME(slopedown, slopeup, waveform) \
18	((slopedown) << 6 | (slopeup) << 4 | (waveform))
19
20#endif /* _LEDS_BD2802_H_ */
21
v3.5.6
 
 1/*
 2 * leds-bd2802.h - RGB LED Driver
 3 *
 4 * Copyright (C) 2009 Samsung Electronics
 5 * Kim Kyuwon <q1.kim@samsung.com>
 6 *
 7 * This program is free software; you can redistribute it and/or modify
 8 * it under the terms of the GNU General Public License version 2 as
 9 * published by the Free Software Foundation.
10 *
11 * Datasheet: http://www.rohm.com/products/databook/driver/pdf/bd2802gu-e.pdf
12 *
13 */
14#ifndef _LEDS_BD2802_H_
15#define _LEDS_BD2802_H_
16
17struct bd2802_led_platform_data{
18	int	reset_gpio;
19	u8	rgb_time;
20};
21
22#define RGB_TIME(slopedown, slopeup, waveform) \
23	((slopedown) << 6 | (slopeup) << 4 | (waveform))
24
25#endif /* _LEDS_BD2802_H_ */
26