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
19 #define MAX9271_SPREAD_SPECT_0 (0 << 5)
20 #define MAX9271_SPREAD_SPECT_05 (1 << 5)
21 #define MAX9271_SPREAD_SPECT_15 (2 << 5)
22 #define MAX9271_SPREAD_SPECT_1 (5 << 5)
23 #define MAX9271_SPREAD_SPECT_2 (3 << 5)
24 #define MAX9271_SPREAD_SPECT_3 (6 << 5)
25 #define MAX9271_SPREAD_SPECT_4 (7 << 5)
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)
57 #define MAX9271_I2CSLVSH_1046NS_469NS (3 << 5)
58 #define MAX9271_I2CSLVSH_938NS_352NS (2 << 5)
59 #define MAX9271_I2CSLVSH_469NS_234NS (1 << 5)
60 #define MAX9271_I2CSLVSH_352NS_117NS (0 << 5)
63 #define MAX9271_I2CMSTBT_339KBPS (5 << 2)
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
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
123 * max9271_set_high_threshold() - Enable or disable reverse channel high
133 * max9271_configure_gmsl_link() - Configure the GMSL link
144 * max9271_set_gpios() - Set gpio lines to physical high value
149 * bit values.
156 * max9271_clear_gpios() - Set gpio lines to physical low value
161 * bit values.
168 * max9271_enable_gpios() - Enable gpio lines
173 * bit values. GPO line is always enabled by default.
180 * max9271_disable_gpios() - Disable gpio lines
185 * bit values. GPO line is always enabled by default and cannot be disabled.
192 * max9271_verify_id() - Read and verify MAX9271 id
200 * max9271_set_address() - Program a new I2C address
202 * @addr: The new I2C address in 7-bit format
214 * max9271_set_deserializer_address() - Program the remote deserializer address
216 * @addr: The deserializer I2C address in 7-bit format
223 * max9271_set_translation() - Program I2C address translation