Lines Matching +full:0 +full:x00000
17 #define REG_CTRL 0x00
18 #define REG_CTRL_EN 0x00001
19 #define REG_CTRL_SLAVE 0x00002
20 #define REG_CTRL_AUTOACK 0x00004
21 #define REG_CTRL_AUTOSE 0x00008
22 #define REG_CTRL_AUTOSN 0x00010
23 #define REG_CTRL_ARBDIS 0x00020
24 #define REG_CTRL_GCAMEN 0x00040
25 #define REG_CTRL_CLHR__MASK 0x00300
26 #define REG_CTRL_BITO__MASK 0x03000
27 #define REG_CTRL_BITO_OFF 0x00000
28 #define REG_CTRL_BITO_40PCC 0x01000
29 #define REG_CTRL_BITO_80PCC 0x02000
30 #define REG_CTRL_BITO_160PCC 0x03000
31 #define REG_CTRL_GIBITO 0x08000
32 #define REG_CTRL_CLTO__MASK 0x70000
33 #define REG_CTRL_CLTO_OFF 0x00000
35 #define REG_CMD 0x04
36 #define REG_CMD_START 0x00001
37 #define REG_CMD_STOP 0x00002
38 #define REG_CMD_ACK 0x00004
39 #define REG_CMD_NACK 0x00008
40 #define REG_CMD_CONT 0x00010
41 #define REG_CMD_ABORT 0x00020
42 #define REG_CMD_CLEARTX 0x00040
43 #define REG_CMD_CLEARPC 0x00080
45 #define REG_STATE 0x08
46 #define REG_STATE_BUSY 0x00001
47 #define REG_STATE_MASTER 0x00002
48 #define REG_STATE_TRANSMITTER 0x00004
49 #define REG_STATE_NACKED 0x00008
50 #define REG_STATE_BUSHOLD 0x00010
51 #define REG_STATE_STATE__MASK 0x000e0
52 #define REG_STATE_STATE_IDLE 0x00000
53 #define REG_STATE_STATE_WAIT 0x00020
54 #define REG_STATE_STATE_START 0x00040
55 #define REG_STATE_STATE_ADDR 0x00060
56 #define REG_STATE_STATE_ADDRACK 0x00080
57 #define REG_STATE_STATE_DATA 0x000a0
58 #define REG_STATE_STATE_DATAACK 0x000c0
60 #define REG_STATUS 0x0c
61 #define REG_STATUS_PSTART 0x00001
62 #define REG_STATUS_PSTOP 0x00002
63 #define REG_STATUS_PACK 0x00004
64 #define REG_STATUS_PNACK 0x00008
65 #define REG_STATUS_PCONT 0x00010
66 #define REG_STATUS_PABORT 0x00020
67 #define REG_STATUS_TXC 0x00040
68 #define REG_STATUS_TXBL 0x00080
69 #define REG_STATUS_RXDATAV 0x00100
71 #define REG_CLKDIV 0x10
72 #define REG_CLKDIV_DIV__MASK 0x001ff
75 #define REG_SADDR 0x14
76 #define REG_SADDRMASK 0x18
77 #define REG_RXDATA 0x1c
78 #define REG_RXDATAP 0x20
79 #define REG_TXDATA 0x24
80 #define REG_IF 0x28
81 #define REG_IF_START 0x00001
82 #define REG_IF_RSTART 0x00002
83 #define REG_IF_ADDR 0x00004
84 #define REG_IF_TXC 0x00008
85 #define REG_IF_TXBL 0x00010
86 #define REG_IF_RXDATAV 0x00020
87 #define REG_IF_ACK 0x00040
88 #define REG_IF_NACK 0x00080
89 #define REG_IF_MSTOP 0x00100
90 #define REG_IF_ARBLOST 0x00200
91 #define REG_IF_BUSERR 0x00400
92 #define REG_IF_BUSHOLD 0x00800
93 #define REG_IF_TXOF 0x01000
94 #define REG_IF_RXUF 0x02000
95 #define REG_IF_BITO 0x04000
96 #define REG_IF_CLTO 0x08000
97 #define REG_IF_SSTOP 0x10000
99 #define REG_IFS 0x2c
100 #define REG_IFC 0x30
101 #define REG_IFC__MASK 0x1ffcf
103 #define REG_IEN 0x34
105 #define REG_ROUTE 0x38
106 #define REG_ROUTE_SDAPEN 0x00001
107 #define REG_ROUTE_SCLPEN 0x00002
108 #define REG_ROUTE_LOCATION__MASK 0x00700
153 ddata->current_word = 0; in efm32_i2c_send_next_byte()
176 ddata->current_word = 0; in efm32_i2c_recv_next_byte()
265 ddata->current_word = 0; in efm32_i2c_master_xfer()
266 ddata->current_msg = 0; in efm32_i2c_master_xfer()
335 ddata->base = devm_platform_get_and_ioremap_resource(pdev, 0, &res); in efm32_i2c_probe()
339 if (resource_size(res) < 0x42) { in efm32_i2c_probe()
344 ret = platform_get_irq(pdev, 0); in efm32_i2c_probe()
345 if (ret <= 0) { in efm32_i2c_probe()
354 if (ret < 0) { in efm32_i2c_probe()
393 if (clkdiv >= 0x200) { in efm32_i2c_probe()
410 REG_CTRL_BITO_160PCC | 0 * REG_CTRL_GIBITO); in efm32_i2c_probe()
419 ret = request_irq(ddata->irq, efm32_i2c_irq, 0, DRIVER_NAME, ddata); in efm32_i2c_probe()
420 if (ret < 0) { in efm32_i2c_probe()
443 return 0; in efm32_i2c_remove()