Lines Matching +full:a +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
26 #define MAX9271_R02_RES BIT(4)
30 #define MAX9271_SEREN BIT(7)
31 #define MAX9271_CLINKEN BIT(6)
32 #define MAX9271_PRBSEN BIT(5)
33 #define MAX9271_SLEEP BIT(4)
37 #define MAX9271_REVCCEN BIT(1)
38 #define MAX9271_FWDCCEN BIT(0)
40 #define MAX9271_DBL BIT(7)
41 #define MAX9271_DRS BIT(6)
42 #define MAX9271_BWS BIT(5)
43 #define MAX9271_ES BIT(4)
44 #define MAX9271_HVEN BIT(2)
49 #define MAX9271_INVVS BIT(7)
50 #define MAX9271_INVHS BIT(6)
51 #define MAX9271_REV_LOGAIN BIT(3)
52 #define MAX9271_REV_HIVTH BIT(0)
56 #define MAX9271_I2CLOCACK BIT(7)
74 #define MAX9271_GPIO5OUT BIT(5)
75 #define MAX9271_GPIO4OUT BIT(4)
76 #define MAX9271_GPIO3OUT BIT(3)
77 #define MAX9271_GPIO2OUT BIT(2)
78 #define MAX9271_GPIO1OUT BIT(1)
79 #define MAX9271_GPO BIT(0)
81 #define MAX9271_PCLKDET BIT(0)
84 * struct max9271_device - max9271 device
92 * max9271_wake_up() - Wake up the serializer by issuing an i2c transaction
101 * max9271_set_serial_link() - Enable/disable serial link
105 * Return 0 on success or a negative error code on failure
110 * max9271_configure_i2c() - Configure I2C bus parameters
112 * @i2c_config: The I2C bus configuration bit mask
115 * @i2c_config parameter shall be assembled using bit values defined by the
118 * Return 0 on success or a negative error code on failure
123 * max9271_set_high_threshold() - Enable or disable reverse channel high
128 * Return 0 on success or a negative error code on failure
133 * max9271_configure_gmsl_link() - Configure the GMSL link
139 * Return 0 on success or a negative error code on failure
144 * max9271_set_gpios() - Set gpio lines to physical high value
149 * bit values.
151 * Return 0 on success or a negative error code on failure
156 * max9271_clear_gpios() - Set gpio lines to physical low value
161 * bit values.
163 * Return 0 on success or a negative error code on failure
168 * max9271_enable_gpios() - Enable gpio lines
173 * bit values. GPO line is always enabled by default.
175 * Return 0 on success or a negative error code on failure
180 * max9271_disable_gpios() - Disable gpio lines
185 * bit values. GPO line is always enabled by default and cannot be disabled.
187 * Return 0 on success or a negative error code on failure
192 * max9271_verify_id() - Read and verify MAX9271 id
195 * Return 0 on success or a negative error code on failure
200 * max9271_set_address() - Program a new I2C address
202 * @addr: The new I2C address in 7-bit format
209 * Return 0 on success or a negative error code on failure
214 * max9271_set_deserializer_address() - Program the remote deserializer address
216 * @addr: The deserializer I2C address in 7-bit format
218 * Return 0 on success or a negative error code on failure
223 * max9271_set_translation() - Program I2C address translation
232 * supports a single one.
234 * Return 0 on success or a negative error code on failure