1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #ifndef _SIEMENS_NC_FPGA_H_
4 #define _SIEMENS_NC_FPGA_H_
8 #define NC_MAGIC_OFFSET 0x020
9 #define NC_FPGA_MAGIC 0x4E433746
10 #define NC_CAP1_OFFSET 0x080
11 #define NC_CAP1_DSAVE_NMI_DELAY 0x008
12 #define NC_CAP1_BL_BRIGHTNESS_CTRL 0x010
13 #define NC_CAP1_FAN_CTRL 0x080
14 #define NC_CAP1_TEMP_MON 0x100
15 #define NC_DSAVE_OFFSET 0x58
16 #define NC_DIAG_CTRL_OFFSET 0x60
17 #define NC_DIAG_FW_DONE 0x10000
18 #define NC_BL_BRIGHTNESS_OFFSET 0x88
19 #define NC_BL_PWM_OFFSET 0x8C
20 #define NC_FPGA_POST_OFFSET 0xE0
21 #define NC_FANMON_CTRL_OFFSET 0x400
23 #define MAX_NUM_SENSORS 8
38 temp_cc_t sensorcfg
[8];
46 uint32_t samplingtime
;
57 uint16_t hystthreshold
;
60 } __packed fan_ctrl_t
;
62 void nc_fpga_post(uint8_t value
);
63 void nc_fpga_remap(uint32_t new_mmio
);
65 #endif /* _SIEMENS_NC_FPGA_H_ */