aboutsummaryrefslogtreecommitdiff
path: root/include/linux/intel_pwm_world_led.h
blob: 33b6dd5495cb7f68eff83977e84a151d29bd2d4b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/*
 * intel_pwm_world_led.h: Intel interface for gps devices
 *
 * (C) Copyright 2015 Intel Corporation
 * Author:
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; version 2
 * of the License.
 */

#ifndef __INTEL_WORLD_LED_H
#define __INTEL_WORLD_LED_H

#define INTEL_WORLD_LED_DRV_NAME "intel_world_led_driver"

#define INTEL_WORLD_LED_MAX_TIMEDIVISOR  0xFF
#define INTEL_WORLD_LED_MAX_BASEUNIT 0x80

#define WORLD_LED_PWM_GPIO 12

struct world_led_pdata {
	u8 time_divisor;
	u8 base_unit;
	u8 alt_fn;
	u8 ext_drv;
	int gpio_en;
	int gpio_pwm;
	const char *name;
};

#endif