Lines Matching +full:0 +full:x0084
14 #define PHY_ID_LAN867X_REVB1 0x0007C162
15 #define PHY_ID_LAN867X_REVC1 0x0007C164
16 #define PHY_ID_LAN867X_REVC2 0x0007C165
18 #define PHY_ID_LAN865X_REVB 0x0007C1B3
20 #define LAN867X_REG_STS2 0x0019
24 #define LAN865X_REG_CFGPARAM_ADDR 0x00D8
25 #define LAN865X_REG_CFGPARAM_DATA 0x00D9
26 #define LAN865X_REG_CFGPARAM_CTRL 0x00DA
27 #define LAN865X_REG_STS2 0x0019
29 /* Collision Detector Control 0 Register */
30 #define LAN86XX_REG_COL_DET_CTRL0 0x0087
33 #define COL_DET_DISABLE 0x0000
39 * RMW 0x1F 0x00D0 0x0002 0x0E03
40 * RMW 0x1F 0x00D1 0x0000 0x0300
41 * RMW 0x1F 0x0084 0x3380 0xFFC0
42 * RMW 0x1F 0x0085 0x0006 0x000F
43 * RMW 0x1F 0x008A 0xC000 0xF800
44 * RMW 0x1F 0x0087 0x801C 0x801C
45 * RMW 0x1F 0x0088 0x033F 0x1FFF
46 * W 0x1F 0x008B 0x0404 ------
47 * RMW 0x1F 0x0080 0x0600 0x0600
48 * RMW 0x1F 0x00F1 0x2400 0x7F00
49 * RMW 0x1F 0x0096 0x2000 0x2000
50 * W 0x1F 0x0099 0x7F80 ------
54 0x00D0, 0x00D1, 0x0084, 0x0085,
55 0x008A, 0x0087, 0x0088, 0x008B,
56 0x0080, 0x00F1, 0x0096, 0x0099,
60 0x0002, 0x0000, 0x3380, 0x0006,
61 0xC000, 0x801C, 0x033F, 0x0404,
62 0x0600, 0x2400, 0x2000, 0x7F80,
66 0x0E03, 0x0300, 0xFFC0, 0x000F,
67 0xF800, 0x801C, 0x1FFF, 0xFFFF,
68 0x0600, 0x7F00, 0x2000, 0xFFFF,
77 0x00D0, 0x00E0, 0x00E9, 0x00F5,
78 0x00F4, 0x00F8, 0x00F9, 0x0081,
79 0x0091, 0x0043, 0x0044, 0x0045,
80 0x0053, 0x0054, 0x0055, 0x0040,
81 0x0050,
85 0x3F31, 0xC000, 0x9E50, 0x1CF8,
86 0xC020, 0xB900, 0x4E53, 0x0080,
87 0x9660, 0x00FF, 0xFFFF, 0x0000,
88 0x00FF, 0xFFFF, 0x0000, 0x0002,
89 0x0002,
93 0x0084, 0x008A,
97 0x00B0, 0x00B1, 0x00B2, 0x00B3,
98 0x00B4, 0x00B5, 0x00B6, 0x00B7,
99 0x00B8, 0x00B9, 0x00BA, 0x00BB,
103 0x0103, 0x0910, 0x1D26, 0x002A,
104 0x0103, 0x070D, 0x1720, 0x0027,
105 0x0509, 0x0E13, 0x1C25, 0x002B,
109 0x00AD, 0x00AE, 0x00AF,
114 * write_register(0x4, 0x00D8, addr)
115 * write_register(0x4, 0x00DA, 0x2)
116 * return (int8)(read_register(0x4, 0x00D9))
118 * 0x4 refers to memory map selector 4, which maps to MDIO_MMD_VEND2
142 const u16 fixup_regs[2] = {0x0004, 0x0008}; in lan865x_generate_cfg_offsets()
145 for (int i = 0; i < ARRAY_SIZE(fixup_regs); i++) { in lan865x_generate_cfg_offsets()
147 if (ret < 0) in lan865x_generate_cfg_offsets()
151 ret &= GENMASK(4, 0); in lan865x_generate_cfg_offsets()
153 offsets[i] = ret | 0xE0; in lan865x_generate_cfg_offsets()
158 return 0; in lan865x_generate_cfg_offsets()
167 for (int i = 0; i < count; i++) { in lan865x_read_cfg_params()
170 if (ret < 0) in lan865x_read_cfg_params()
175 return 0; in lan865x_read_cfg_params()
184 for (int i = 0; i < count; i++) { in lan865x_write_cfg_params()
191 return 0; in lan865x_write_cfg_params()
205 cfg_results[0] = FIELD_PREP(GENMASK(15, 10), 9 + offsets[0]) | in lan865x_setup_cfgparam()
206 FIELD_PREP(GENMASK(9, 4), 14 + offsets[0]) | in lan865x_setup_cfgparam()
207 0x03; in lan865x_setup_cfgparam()
225 cfg_results[0] = FIELD_PREP(GENMASK(13, 8), 5 + offsets[0]) | in lan865x_setup_sqi_cfgparam()
226 (9 + offsets[0]); in lan865x_setup_sqi_cfgparam()
227 cfg_results[1] = FIELD_PREP(GENMASK(13, 8), 9 + offsets[0]) | in lan865x_setup_sqi_cfgparam()
228 (14 + offsets[0]); in lan865x_setup_sqi_cfgparam()
229 cfg_results[2] = FIELD_PREP(GENMASK(13, 8), 17 + offsets[0]) | in lan865x_setup_sqi_cfgparam()
230 (22 + offsets[0]); in lan865x_setup_sqi_cfgparam()
248 for (int i = 0; i < ARRAY_SIZE(lan865x_revb_fixup_registers); i++) { in lan865x_revb_config_init()
266 for (int i = 0; i < ARRAY_SIZE(lan865x_revb_sqi_fixup_regs); i++) { in lan865x_revb_config_init()
274 return 0; in lan865x_revb_config_init()
285 if (err < 0) in lan867x_check_reset_complete()
291 if (err < 0) in lan867x_check_reset_complete()
299 return 0; in lan867x_check_reset_complete()
325 for (int i = 0; i < 9; i++) { in lan867x_revc_config_init()
343 for (int i = 0; i < ARRAY_SIZE(lan865x_revb_sqi_fixup_regs); i++) { in lan867x_revc_config_init()
351 return 0; in lan867x_revc_config_init()
368 for (int i = 0; i < ARRAY_SIZE(lan867x_revb1_fixup_registers); i++) { in lan867x_revb1_config_init()
377 return 0; in lan867x_revb1_config_init()
422 return 0; in lan86xx_read_status()