Lines Matching +full:addr +full:- +full:mode
1 // SPDX-License-Identifier: GPL-2.0-or-later
37 static void slic_write(struct spi_device *spi, u16 addr, in slic_write() argument
42 addr = bitrev16(addr) >> 1; in slic_write()
44 temp[0] = (u8)((addr >> 8) & 0x7f); in slic_write()
45 temp[1] = (u8)(addr & 0xfe); in slic_write()
48 /* write spi addr and value */ in slic_write()
52 static u8 slic_read(struct spi_device *spi, u16 addr) in slic_read() argument
57 addr = bitrev16(addr) >> 1; in slic_read()
58 temp[0] = (u8)(((addr >> 8) & 0x7f) | 0x80); in slic_read()
59 temp[1] = (u8)(addr & 0xfe); in slic_read()
81 /* Receive E1 Mode, Framer Disabled */ in ds26522_e1_spec_config()
84 /* Transmit E1 Mode, Framer Disable */ in ds26522_e1_spec_config()
87 /* Receive E1 Mode Framer Enable */ in ds26522_e1_spec_config()
91 /* Transmit E1 Mode Framer Enable */ in ds26522_e1_spec_config()
99 /* RSYSCLK=2.048MHz, RSYNC-Output */ in ds26522_e1_spec_config()
106 /* TSYSCLK=2.048MHz, TSYNC-Output */ in ds26522_e1_spec_config()
116 /* Receive E1 Mode Framer Enable & init Done */ in ds26522_e1_spec_config()
120 /* Transmit E1 Mode Framer Enable & init Done */ in ds26522_e1_spec_config()
124 /* Configure LIU E1 mode */ in ds26522_e1_spec_config()
127 /* E1 Mode default 75 ohm w/Transmit Impedance Matlinking */ in ds26522_e1_spec_config()
131 /* E1 Mode default 75 ohm Long Haul w/Receive Impedance Matlinking */ in ds26522_e1_spec_config()
141 u16 addr; in slic_ds26522_init_configure() local
173 for (addr = DS26522_RF_ADDR_START; addr <= DS26522_RF_ADDR_END; in slic_ds26522_init_configure()
174 addr++) in slic_ds26522_init_configure()
175 slic_write(spi, addr, 0); in slic_ds26522_init_configure()
177 for (addr = DS26522_TF_ADDR_START; addr <= DS26522_TF_ADDR_END; in slic_ds26522_init_configure()
178 addr++) in slic_ds26522_init_configure()
179 slic_write(spi, addr, 0); in slic_ds26522_init_configure()
181 for (addr = DS26522_LIU_ADDR_START; addr <= DS26522_LIU_ADDR_END; in slic_ds26522_init_configure()
182 addr++) in slic_ds26522_init_configure()
183 slic_write(spi, addr, 0); in slic_ds26522_init_configure()
185 for (addr = DS26522_BERT_ADDR_START; addr <= DS26522_BERT_ADDR_END; in slic_ds26522_init_configure()
186 addr++) in slic_ds26522_init_configure()
187 slic_write(spi, addr, 0); in slic_ds26522_init_configure()
207 spi->bits_per_word = 8; in slic_ds26522_probe()