1 /*
2  * Copyright (c) 2024 Savoir-faire Linux
3  *
4  * SPDX-License-Identifier: Apache-2.0
5  */
6 
7 #ifndef __SSD1327_REGS_H__
8 #define __SSD1327_REGS_H__
9 
10 /*
11  * Fundamental Command Table
12  */
13 #define SSD1327_SET_COLUMN_ADDR			0x15
14 #define SSD1327_SET_ROW_ADDR			0x75
15 
16 #define SSD1327_SET_CONTRAST_CTRL		0x81
17 
18 #define SSD1327_SET_SEGMENT_MAP_REMAPED		0xa0
19 #define SSD1327_SET_DISPLAY_START_LINE		0xa1
20 #define SSD1327_SET_DISPLAY_OFFSET		0xa2
21 
22 #define SSD1327_SET_NORMAL_DISPLAY		0xa4
23 #define SSD1327_SET_ENTIRE_DISPLAY_ON		0xa5
24 #define SSD1327_SET_ENTIRE_DISPLAY_OFF		0xa6
25 #define SSD1327_SET_REVERSE_DISPLAY		0xa7
26 #define SSD1327_SET_MULTIPLEX_RATIO		0xa8
27 
28 #define SSD1327_DISPLAY_OFF			0xae
29 #define SSD1327_DISPLAY_ON			0xaf
30 
31 #define SSD1327_SET_FUNCTION_A			0xab
32 #define SSD1327_SET_PHASE_LENGTH		0xb1
33 #define SSD1327_SET_OSC_FREQ			0xb3
34 #define SSD1327_SET_PRECHARGE_PERIOD		0xb6
35 #define SSD1327_FUNCTION_SELECTION_B		0xd5
36 
37 #define SSD1327_LINEAR_LUT			0xb9
38 
39 #define SSD1327_SET_PRECHARGE_VOLTAGE		0xbc
40 #define SSD1327_SET_VCOMH			0xbe
41 
42 
43 #define SSD1327_SET_COMMAND_LOCK		0xfd
44 
45 /* Time constant in ms */
46 #define SSD1327_RESET_DELAY			10
47 
48 #endif
49