blob: fe4c2fb4e5844536f6c911f764beb0f651755329 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
/* Copyright 2022 The ChromiumOS Authors
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#ifndef _PRIMUS_CBI_SSFC_H_
#define _PRIMUS_CBI_SSFC_H_
#include "stdint.h"
/****************************************************************************
* Primus CBI Second Source Factory Cache
*/
/*
* Trackpoint (Bit 0)
*/
enum ec_ssfc_trackpoint {
SSFC_SENSOR_TRACKPOINT_ELAN = 0,
SSFC_SENSOR_TRACKPOINT_SYNAPTICS = 1,
};
union primus_cbi_ssfc {
struct {
enum ec_ssfc_trackpoint trackpoint : 2;
uint32_t reserved_1 : 30;
};
uint32_t raw_value;
};
/**
* Get the trackpoint type from SSFC_CONFIG.
*
* @return the Trackpoint board type.
*/
enum ec_ssfc_trackpoint get_cbi_ssfc_trackpoint(void);
#endif /* _PRIMUS_CBI_SSFC_H_ */
|