blob: accd97e2950f1871b4bc4169f18256f6e8e0c0fe [file] [log] [blame]
Jan Altensen53afa332019-07-09 22:43:47 +02001/*
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#define LED_BLN_NODE "/sys/class/misc/backlightnotification/notification_led"
33
34// Uncomment to enable variable button brightness
35//#define VAR_BUTTON_BRIGHTNESS 1
36
37/*
38 * Brightness adjustment factors
39 *
40 * If one of your device's LEDs is more powerful than the others, use these
41 * values to equalise them. This value is in the range 0.0-1.0.
42 */
43#define LED_ADJUSTMENT_R 1.0
44#define LED_ADJUSTMENT_G 1.0
45#define LED_ADJUSTMENT_B 1.0
46
47/*
48 * Light brightness factors
49 *
50 * It might make sense for all colours to be scaled down (for example, if your
51 * LED is too bright). Use these values to adjust the brightness of each
52 * light. This value is within the range 0-255.
53 */
54#define LED_BRIGHTNESS_BATTERY 255
55#define LED_BRIGHTNESS_NOTIFICATION 255
56#define LED_BRIGHTNESS_ATTENTION 255
57
58#endif // SAMSUNG_LIGHTS_H