Lines Matching +full:5 +full:- +full:bit
1 /* SPDX-License-Identifier: GPL-2.0+ */
3 * Copyright (C) 2017-2020 Jacopo Mondi
4 * Copyright (C) 2017-2020 Kieran Bingham
5 * Copyright (C) 2017-2020 Laurent Pinchart
6 * Copyright (C) 2017-2020 Niklas Söderlund
16 #define MAX9271_SPREAD_SPECT_0 (0 << 5)
17 #define MAX9271_SPREAD_SPECT_05 (1 << 5)
18 #define MAX9271_SPREAD_SPECT_15 (2 << 5)
19 #define MAX9271_SPREAD_SPECT_1 (5 << 5)
20 #define MAX9271_SPREAD_SPECT_2 (3 << 5)
21 #define MAX9271_SPREAD_SPECT_3 (6 << 5)
22 #define MAX9271_SPREAD_SPECT_4 (7 << 5)
23 #define MAX9271_R02_RES BIT(4)
27 #define MAX9271_SEREN BIT(7)
28 #define MAX9271_CLINKEN BIT(6)
29 #define MAX9271_PRBSEN BIT(5)
30 #define MAX9271_SLEEP BIT(4)
34 #define MAX9271_REVCCEN BIT(1)
35 #define MAX9271_FWDCCEN BIT(0)
37 #define MAX9271_DBL BIT(7)
38 #define MAX9271_DRS BIT(6)
39 #define MAX9271_BWS BIT(5)
40 #define MAX9271_ES BIT(4)
41 #define MAX9271_HVEN BIT(2)
46 #define MAX9271_INVVS BIT(7)
47 #define MAX9271_INVHS BIT(6)
48 #define MAX9271_REV_LOGAIN BIT(3)
49 #define MAX9271_REV_HIVTH BIT(0)
53 #define MAX9271_I2CLOCACK BIT(7)
54 #define MAX9271_I2CSLVSH_1046NS_469NS (3 << 5)
55 #define MAX9271_I2CSLVSH_938NS_352NS (2 << 5)
56 #define MAX9271_I2CSLVSH_469NS_234NS (1 << 5)
57 #define MAX9271_I2CSLVSH_352NS_117NS (0 << 5)
60 #define MAX9271_I2CMSTBT_339KBPS (5 << 2)
71 #define MAX9271_GPIO5OUT BIT(5)
72 #define MAX9271_GPIO4OUT BIT(4)
73 #define MAX9271_GPIO3OUT BIT(3)
74 #define MAX9271_GPIO2OUT BIT(2)
75 #define MAX9271_GPIO1OUT BIT(1)
76 #define MAX9271_GPO BIT(0)
78 #define MAX9271_PCLKDET BIT(0)
81 * struct max9271_device - max9271 device
89 * max9271_set_serial_link() - Enable/disable serial link
98 * max9271_configure_i2c() - Configure I2C bus parameters
100 * @i2c_config: The I2C bus configuration bit mask
103 * @i2c_config parameter shall be assembled using bit values defined by the
111 * max9271_set_high_threshold() - Enable or disable reverse channel high
121 * max9271_configure_gmsl_link() - Configure the GMSL link
132 * max9271_set_gpios() - Set gpio lines to physical high value
137 * bit values.
144 * max9271_clear_gpios() - Set gpio lines to physical low value
149 * bit values.
156 * max9271_enable_gpios() - Enable gpio lines
161 * bit values. GPO line is always enabled by default.
168 * max9271_disable_gpios() - Disable gpio lines
173 * bit values. GPO line is always enabled by default and cannot be disabled.
180 * max9271_verify_id() - Read and verify MAX9271 id
188 * max9271_set_address() - Program a new I2C address
190 * @addr: The new I2C address in 7-bit format
202 * max9271_set_deserializer_address() - Program the remote deserializer address
204 * @addr: The deserializer I2C address in 7-bit format
211 * max9271_set_translation() - Program I2C address translation