blob: e731f0036329c424dfe31d85d0d9224e65dfc67e [file] [log] [blame]
Peter Meerwald2f73c3922012-09-24 14:53:49 +08001/*
Ricardo Ribalda Delgado56a17402013-08-14 14:23:50 -07002 * PCA963X LED chip driver.
Peter Meerwald2f73c3922012-09-24 14:53:49 +08003 *
4 * Copyright 2012 bct electronic GmbH
Ricardo Ribalda Delgado56a17402013-08-14 14:23:50 -07005 * Copyright 2013 Qtechnology A/S
Peter Meerwald2f73c3922012-09-24 14:53:49 +08006 *
7 * This program is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License
9 * version 2 as published by the Free Software Foundation.
10 *
11 * This program is distributed in the hope that it will be useful, but
12 * WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
19 * 02110-1301 USA
20 */
21
Ricardo Ribalda Delgado56a17402013-08-14 14:23:50 -070022#ifndef __LINUX_PCA963X_H
23#define __LINUX_PCA963X_H
Peter Meerwald2f73c3922012-09-24 14:53:49 +080024#include <linux/leds.h>
25
Ricardo Ribalda Delgado56a17402013-08-14 14:23:50 -070026enum pca963x_outdrv {
27 PCA963X_OPEN_DRAIN,
28 PCA963X_TOTEM_POLE, /* aka push-pull */
Peter Meerwald2f73c3922012-09-24 14:53:49 +080029};
30
Ricardo Ribalda Delgado56a17402013-08-14 14:23:50 -070031enum pca963x_blink_type {
32 PCA963X_SW_BLINK,
33 PCA963X_HW_BLINK,
Mark A. Greer8465b012013-07-25 10:16:41 -070034};
35
Ricardo Ribalda Delgado56a17402013-08-14 14:23:50 -070036struct pca963x_platform_data {
Peter Meerwald2f73c3922012-09-24 14:53:49 +080037 struct led_platform_data leds;
Ricardo Ribalda Delgado56a17402013-08-14 14:23:50 -070038 enum pca963x_outdrv outdrv;
39 enum pca963x_blink_type blink_type;
Peter Meerwald2f73c3922012-09-24 14:53:49 +080040};
41
Ricardo Ribalda Delgado56a17402013-08-14 14:23:50 -070042#endif /* __LINUX_PCA963X_H*/