Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) */
0002 /*
0003  * This header provides constants for rt4831 backlight bindings.
0004  *
0005  * Copyright (C) 2020, Richtek Technology Corp.
0006  * Author: ChiYuan Huang <cy_huang@richtek.com>
0007  */
0008 
0009 #ifndef _DT_BINDINGS_RT4831_BACKLIGHT_H
0010 #define _DT_BINDINGS_RT4831_BACKLIGHT_H
0011 
0012 #define RT4831_BLOVPLVL_17V 0
0013 #define RT4831_BLOVPLVL_21V 1
0014 #define RT4831_BLOVPLVL_25V 2
0015 #define RT4831_BLOVPLVL_29V 3
0016 
0017 #define RT4831_BLED_CH1EN   (1 << 0)
0018 #define RT4831_BLED_CH2EN   (1 << 1)
0019 #define RT4831_BLED_CH3EN   (1 << 2)
0020 #define RT4831_BLED_CH4EN   (1 << 3)
0021 #define RT4831_BLED_ALLCHEN ((1 << 4) - 1)
0022 
0023 #endif /* _DT_BINDINGS_RT4831_BACKLIGHT_H */