blob: dc07b6fe423a63fc429f51f0f7e4e9f1b26f4dc6 [file] [log] [blame]
Christopher N. Hesseae271482016-12-01 15:51:12 +01001/*
2 * Copyright (C) 2016 The CyanogenMod Project
Simon Shields310d1992017-02-18 20:55:11 +11003 * Copyright (C) 2017 The LineageOS Project
Christopher N. Hesseae271482016-12-01 15:51:12 +01004 *
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"
Christopher N. Hessef3c6a422016-12-05 22:11:55 +010029#define PANEL_MAX_BRIGHTNESS_NODE "/sys/class/backlight/panel/max_brightness"
Christopher N. Hesseae271482016-12-01 15:51:12 +010030#define BUTTON_BRIGHTNESS_NODE "/sys/class/sec/sec_touchkey/brightness"
31#define LED_BLINK_NODE "/sys/class/sec/led/led_blink"
32
Simon Shields310d1992017-02-18 20:55:11 +110033/*
34 * Brightness adjustment factors
35 *
36 * If one of your device's LEDs is more powerful than the others, use these
37 * values to equalise them. This value is in the range 0.0-1.0.
38 */
39#define LED_ADJUSTMENT_R 1.0
40#define LED_ADJUSTMENT_G 1.0
41#define LED_ADJUSTMENT_B 1.0
42
43/*
44 * Light brightness factors
45 *
46 * It might make sense for all colours to be scaled down (for example, if your
47 * LED is too bright). Use these values to adjust the brightness of each
48 * light. This value is within the range 0-255.
49 */
50#define LED_BRIGHTNESS_BATTERY 255
51#define LED_BRIGHTNESS_NOTIFICATION 255
52#define LED_BRIGHTNESS_ATTENTION 255
53
Christopher N. Hesseae271482016-12-01 15:51:12 +010054#endif // SAMSUNG_LIGHTS_H