s5neolte: add device specific lights header
[GitHub/LineageOS/android_device_samsung_s5neolte.git] / include / samsung_lights.h
1 /*
2 * Copyright (C) 2016 The CyanogenMod Project
3 * Copyright (C) 2017 The LineageOS Project
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
8 *
9 * http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
16 */
17
18 #ifndef SAMSUNG_LIGHTS_H
19 #define SAMSUNG_LIGHTS_H
20
21 /*
22 * Board specific nodes
23 *
24 * If your kernel exposes these controls in another place, you can either
25 * symlink to the locations given here, or override this header in your
26 * device tree.
27 */
28 #define PANEL_BRIGHTNESS_NODE "/sys/class/backlight/panel/brightness"
29 #define PANEL_MAX_BRIGHTNESS_NODE "/sys/class/backlight/panel/max_brightness"
30 #define BUTTON_BRIGHTNESS_NODE "/sys/class/sec/sec_touchkey/brightness"
31 #define LED_BLINK_NODE "/sys/class/sec/led/led_blink"
32
33 // Uncomment to enable variable button brightness
34 //#define VAR_BUTTON_BRIGHTNESS 1
35
36 /*
37 * Brightness adjustment factors
38 *
39 * If one of your device's LEDs is more powerful than the others, use these
40 * values to equalise them. This value is in the range 0.0-1.0.
41 */
42 #define LED_ADJUSTMENT_R 1.0
43 #define LED_ADJUSTMENT_G 1.0
44 #define LED_ADJUSTMENT_B 1.0
45
46 /*
47 * Light brightness factors
48 *
49 * It might make sense for all colours to be scaled down (for example, if your
50 * LED is too bright). Use these values to adjust the brightness of each
51 * light. This value is within the range 0-255.
52 */
53 #define LED_BRIGHTNESS_BATTERY 255
54 #define LED_BRIGHTNESS_NOTIFICATION 255
55 #define LED_BRIGHTNESS_ATTENTION 255
56
57 #endif // SAMSUNG_LIGHTS_H