blob: 85b63fc558a33e1ff60d452d41abce08de2d8bc7 [file] [log] [blame]
Stefan Roeseb79316f2005-08-15 12:31:23 +02001/*
2 * Copyright (C) 2005 Sandburst Corporation
3 *
4 * See file CREDITS for list of people who contributed to this
5 * project.
6 *
7 * This program is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License as
9 * published by the Free Software Foundation; either version 2 of
10 * the License, or (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
20 * MA 02111-1307 USA
21 */
22
23/*
Stefan Roesea47a12b2010-04-15 16:07:28 +020024 * Ported from arch/powerpc/cpu/ppc4xx/i2c.c by AS HARNOIS by
Stefan Roeseb79316f2005-08-15 12:31:23 +020025 * Travis B. Sawyer
26 * Sandburst Corporation.
27 */
28#include <common.h>
Stefan Roeseb36df562010-09-09 19:18:00 +020029#include <asm/ppc4xx.h>
30#include <asm/ppc4xx-i2c.h>
Stefan Roeseb79316f2005-08-15 12:31:23 +020031#include <i2c.h>
Stefan Roeseb79316f2005-08-15 12:31:23 +020032#include <command.h>
33#include "ppc440gx_i2c.h"
Peter Tyser61f2b382010-04-12 22:28:07 -050034#include <asm/io.h>
Stefan Roeseb79316f2005-08-15 12:31:23 +020035
36#ifdef CONFIG_I2C_BUS1
37
Stefan Roeseb79316f2005-08-15 12:31:23 +020038#define IIC_OK 0
39#define IIC_NOK 1
40#define IIC_NOK_LA 2 /* Lost arbitration */
41#define IIC_NOK_ICT 3 /* Incomplete transfer */
42#define IIC_NOK_XFRA 4 /* Transfer aborted */
43#define IIC_NOK_DATA 5 /* No data in buffer */
44#define IIC_NOK_TOUT 6 /* Transfer timeout */
45
46#define IIC_TIMEOUT 1 /* 1 second */
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +020047#if defined(CONFIG_SYS_I2C_NOPROBES)
48static uchar i2c_no_probes[] = CONFIG_SYS_I2C_NOPROBES;
Stefan Roeseb79316f2005-08-15 12:31:23 +020049#endif
50
Heiko Schocher072e7542009-12-03 11:23:17 +010051static struct ppc4xx_i2c *i2c = (struct ppc4xx_i2c *)I2C_REGISTERS_BUS1_BASE_ADDRESS;
52
Stefan Roeseb79316f2005-08-15 12:31:23 +020053static void _i2c_bus1_reset (void)
54{
55 int i, status;
56
57 /* Reset status register */
58 /* write 1 in SCMP and IRQA to clear these fields */
Heiko Schocher072e7542009-12-03 11:23:17 +010059 out_8 (IIC_STS1, 0x0A);
Stefan Roeseb79316f2005-08-15 12:31:23 +020060
61 /* write 1 in IRQP IRQD LA ICT XFRA to clear these fields */
Heiko Schocher072e7542009-12-03 11:23:17 +010062 out_8 (IIC_EXTSTS1, 0x8F);
Stefan Roeseb79316f2005-08-15 12:31:23 +020063 __asm__ volatile ("eieio");
64
65 /*
66 * Get current state, reset bus
67 * only if no transfers are pending.
68 */
69 i = 10;
70 do {
71 /* Get status */
Heiko Schocher072e7542009-12-03 11:23:17 +010072 status = in_8 (IIC_STS1);
Stefan Roeseb79316f2005-08-15 12:31:23 +020073 udelay (500); /* 500us */
74 i--;
75 } while ((status & IIC_STS_PT) && (i > 0));
76 /* Soft reset controller */
Heiko Schocher072e7542009-12-03 11:23:17 +010077 status = in_8 (IIC_XTCNTLSS1);
78 out_8 (IIC_XTCNTLSS1, (status | IIC_XTCNTLSS_SRST));
Stefan Roeseb79316f2005-08-15 12:31:23 +020079 __asm__ volatile ("eieio");
80
81 /* make sure where in initial state, data hi, clock hi */
Heiko Schocher072e7542009-12-03 11:23:17 +010082 out_8 (IIC_DIRECTCNTL1, 0xC);
Stefan Roeseb79316f2005-08-15 12:31:23 +020083 for (i = 0; i < 10; i++) {
Heiko Schocher072e7542009-12-03 11:23:17 +010084 if ((in_8 (IIC_DIRECTCNTL1) & 0x3) != 0x3) {
Stefan Roeseb79316f2005-08-15 12:31:23 +020085 /* clock until we get to known state */
Heiko Schocher072e7542009-12-03 11:23:17 +010086 out_8 (IIC_DIRECTCNTL1, 0x8); /* clock lo */
Stefan Roeseb79316f2005-08-15 12:31:23 +020087 udelay (100); /* 100us */
Heiko Schocher072e7542009-12-03 11:23:17 +010088 out_8 (IIC_DIRECTCNTL1, 0xC); /* clock hi */
Stefan Roeseb79316f2005-08-15 12:31:23 +020089 udelay (100); /* 100us */
90 } else {
91 break;
92 }
93 }
94 /* send start condition */
Heiko Schocher072e7542009-12-03 11:23:17 +010095 out_8 (IIC_DIRECTCNTL1, 0x4);
Stefan Roeseb79316f2005-08-15 12:31:23 +020096 udelay (1000); /* 1ms */
97 /* send stop condition */
Heiko Schocher072e7542009-12-03 11:23:17 +010098 out_8 (IIC_DIRECTCNTL1, 0xC);
Stefan Roeseb79316f2005-08-15 12:31:23 +020099 udelay (1000); /* 1ms */
100 /* Unreset controller */
Heiko Schocher072e7542009-12-03 11:23:17 +0100101 out_8 (IIC_XTCNTLSS1, (status & ~IIC_XTCNTLSS_SRST));
Stefan Roeseb79316f2005-08-15 12:31:23 +0200102 udelay (1000); /* 1ms */
103}
104
105void i2c1_init (int speed, int slaveadd)
106{
107 sys_info_t sysInfo;
108 unsigned long freqOPB;
109 int val, divisor;
110
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +0200111#ifdef CONFIG_SYS_I2C_INIT_BOARD
Stefan Roeseb79316f2005-08-15 12:31:23 +0200112 /* call board specific i2c bus reset routine before accessing the */
113 /* environment, which might be in a chip on that bus. For details */
114 /* about this problem see doc/I2C_Edge_Conditions. */
115 i2c_init_board();
116#endif
117
118 /* Handle possible failed I2C state */
119 /* FIXME: put this into i2c_init_board()? */
120 _i2c_bus1_reset ();
121
122 /* clear lo master address */
Heiko Schocher072e7542009-12-03 11:23:17 +0100123 out_8 (IIC_LMADR1, 0);
Stefan Roeseb79316f2005-08-15 12:31:23 +0200124
125 /* clear hi master address */
Heiko Schocher072e7542009-12-03 11:23:17 +0100126 out_8 (IIC_HMADR1, 0);
Stefan Roeseb79316f2005-08-15 12:31:23 +0200127
128 /* clear lo slave address */
Heiko Schocher072e7542009-12-03 11:23:17 +0100129 out_8 (IIC_LSADR1, 0);
Stefan Roeseb79316f2005-08-15 12:31:23 +0200130
131 /* clear hi slave address */
Heiko Schocher072e7542009-12-03 11:23:17 +0100132 out_8 (IIC_HSADR1, 0);
Stefan Roeseb79316f2005-08-15 12:31:23 +0200133
134 /* Clock divide Register */
135 /* get OPB frequency */
136 get_sys_info (&sysInfo);
137 freqOPB = sysInfo.freqPLB / sysInfo.pllOpbDiv;
138 /* set divisor according to freqOPB */
139 divisor = (freqOPB - 1) / 10000000;
140 if (divisor == 0)
141 divisor = 1;
Heiko Schocher072e7542009-12-03 11:23:17 +0100142 out_8 (IIC_CLKDIV1, divisor);
Stefan Roeseb79316f2005-08-15 12:31:23 +0200143
144 /* no interrupts */
Heiko Schocher072e7542009-12-03 11:23:17 +0100145 out_8 (IIC_INTRMSK1, 0);
Stefan Roeseb79316f2005-08-15 12:31:23 +0200146
147 /* clear transfer count */
Heiko Schocher072e7542009-12-03 11:23:17 +0100148 out_8 (IIC_XFRCNT1, 0);
Stefan Roeseb79316f2005-08-15 12:31:23 +0200149
150 /* clear extended control & stat */
151 /* write 1 in SRC SRS SWC SWS to clear these fields */
Heiko Schocher072e7542009-12-03 11:23:17 +0100152 out_8 (IIC_XTCNTLSS1, 0xF0);
Stefan Roeseb79316f2005-08-15 12:31:23 +0200153
154 /* Mode Control Register
155 Flush Slave/Master data buffer */
Heiko Schocher072e7542009-12-03 11:23:17 +0100156 out_8 (IIC_MDCNTL1, IIC_MDCNTL_FSDB | IIC_MDCNTL_FMDB);
Stefan Roeseb79316f2005-08-15 12:31:23 +0200157 __asm__ volatile ("eieio");
158
159
Heiko Schocher072e7542009-12-03 11:23:17 +0100160 val = in_8(IIC_MDCNTL1);
Stefan Roeseb79316f2005-08-15 12:31:23 +0200161 __asm__ volatile ("eieio");
162
163 /* Ignore General Call, slave transfers are ignored,
164 disable interrupts, exit unknown bus state, enable hold
165 SCL
166 100kHz normaly or FastMode for 400kHz and above
167 */
168
169 val |= IIC_MDCNTL_EUBS|IIC_MDCNTL_HSCL;
170 if( speed >= 400000 ){
171 val |= IIC_MDCNTL_FSM;
172 }
Heiko Schocher072e7542009-12-03 11:23:17 +0100173 out_8 (IIC_MDCNTL1, val);
Stefan Roeseb79316f2005-08-15 12:31:23 +0200174
175 /* clear control reg */
Heiko Schocher072e7542009-12-03 11:23:17 +0100176 out_8 (IIC_CNTL1, 0x00);
Stefan Roeseb79316f2005-08-15 12:31:23 +0200177 __asm__ volatile ("eieio");
178
179}
180
181/*
182 This code tries to use the features of the 405GP i2c
183 controller. It will transfer up to 4 bytes in one pass
Heiko Schocher072e7542009-12-03 11:23:17 +0100184 on the loop. It only does out_8(lbz) to the buffer when it
Stefan Roeseb79316f2005-08-15 12:31:23 +0200185 is possible to do out16(lhz) transfers.
186
187 cmd_type is 0 for write 1 for read.
188
189 addr_len can take any value from 0-255, it is only limited
190 by the char, we could make it larger if needed. If it is
191 0 we skip the address write cycle.
192
193 Typical case is a Write of an addr followd by a Read. The
194 IBM FAQ does not cover this. On the last byte of the write
195 we don't set the creg CHT bit, and on the first bytes of the
196 read we set the RPST bit.
197
198 It does not support address only transfers, there must be
199 a data part. If you want to write the address yourself, put
200 it in the data pointer.
201
202 It does not support transfer to/from address 0.
203
204 It does not check XFRCNT.
205*/
206static
207int i2c_transfer1(unsigned char cmd_type,
208 unsigned char chip,
209 unsigned char addr[],
210 unsigned char addr_len,
211 unsigned char data[],
212 unsigned short data_len )
213{
214 unsigned char* ptr;
215 int reading;
216 int tran,cnt;
217 int result;
218 int status;
219 int i;
220 uchar creg;
221
222 if( data == 0 || data_len == 0 ){
223 /*Don't support data transfer of no length or to address 0*/
224 printf( "i2c_transfer: bad call\n" );
225 return IIC_NOK;
226 }
227 if( addr && addr_len ){
228 ptr = addr;
229 cnt = addr_len;
230 reading = 0;
231 }else{
232 ptr = data;
233 cnt = data_len;
234 reading = cmd_type;
235 }
236
237 /*Clear Stop Complete Bit*/
Heiko Schocher072e7542009-12-03 11:23:17 +0100238 out_8(IIC_STS1,IIC_STS_SCMP);
Stefan Roeseb79316f2005-08-15 12:31:23 +0200239 /* Check init */
240 i=10;
241 do {
242 /* Get status */
Heiko Schocher072e7542009-12-03 11:23:17 +0100243 status = in_8(IIC_STS1);
Stefan Roeseb79316f2005-08-15 12:31:23 +0200244 __asm__ volatile("eieio");
245 i--;
246 } while ((status & IIC_STS_PT) && (i>0));
247
248 if (status & IIC_STS_PT) {
249 result = IIC_NOK_TOUT;
250 return(result);
251 }
252 /*flush the Master/Slave Databuffers*/
Heiko Schocher072e7542009-12-03 11:23:17 +0100253 out_8(IIC_MDCNTL1, ((in_8(IIC_MDCNTL1))|IIC_MDCNTL_FMDB|IIC_MDCNTL_FSDB));
Stefan Roeseb79316f2005-08-15 12:31:23 +0200254 /*need to wait 4 OPB clocks? code below should take that long*/
255
256 /* 7-bit adressing */
Heiko Schocher072e7542009-12-03 11:23:17 +0100257 out_8(IIC_HMADR1,0);
258 out_8(IIC_LMADR1, chip);
Stefan Roeseb79316f2005-08-15 12:31:23 +0200259 __asm__ volatile("eieio");
260
261 tran = 0;
262 result = IIC_OK;
263 creg = 0;
264
265 while ( tran != cnt && (result == IIC_OK)) {
266 int bc,j;
267
268 /* Control register =
269 Normal transfer, 7-bits adressing, Transfer up to bc bytes, Normal start,
270 Transfer is a sequence of transfers
271 */
272 creg |= IIC_CNTL_PT;
273
274 bc = (cnt - tran) > 4 ? 4 :
275 cnt - tran;
276 creg |= (bc-1)<<4;
277 /* if the real cmd type is write continue trans*/
278 if ( (!cmd_type && (ptr == addr)) || ((tran+bc) != cnt) )
279 creg |= IIC_CNTL_CHT;
280
281 if (reading)
282 creg |= IIC_CNTL_READ;
283 else {
284 for(j=0; j<bc; j++) {
285 /* Set buffer */
Heiko Schocher072e7542009-12-03 11:23:17 +0100286 out_8(IIC_MDBUF1,ptr[tran+j]);
Stefan Roeseb79316f2005-08-15 12:31:23 +0200287 __asm__ volatile("eieio");
288 }
289 }
Heiko Schocher072e7542009-12-03 11:23:17 +0100290 out_8(IIC_CNTL1, creg );
Stefan Roeseb79316f2005-08-15 12:31:23 +0200291 __asm__ volatile("eieio");
292
293 /* Transfer is in progress
294 we have to wait for upto 5 bytes of data
295 1 byte chip address+r/w bit then bc bytes
296 of data.
297 udelay(10) is 1 bit time at 100khz
298 Doubled for slop. 20 is too small.
299 */
300 i=2*5*8;
301 do {
302 /* Get status */
Heiko Schocher072e7542009-12-03 11:23:17 +0100303 status = in_8(IIC_STS1);
Stefan Roeseb79316f2005-08-15 12:31:23 +0200304 __asm__ volatile("eieio");
305 udelay (10);
306 i--;
307 } while ((status & IIC_STS_PT) && !(status & IIC_STS_ERR)
308 && (i>0));
309
310 if (status & IIC_STS_ERR) {
311 result = IIC_NOK;
Heiko Schocher072e7542009-12-03 11:23:17 +0100312 status = in_8 (IIC_EXTSTS1);
Stefan Roeseb79316f2005-08-15 12:31:23 +0200313 /* Lost arbitration? */
314 if (status & IIC_EXTSTS_LA)
315 result = IIC_NOK_LA;
316 /* Incomplete transfer? */
317 if (status & IIC_EXTSTS_ICT)
318 result = IIC_NOK_ICT;
319 /* Transfer aborted? */
320 if (status & IIC_EXTSTS_XFRA)
321 result = IIC_NOK_XFRA;
322 } else if ( status & IIC_STS_PT) {
323 result = IIC_NOK_TOUT;
324 }
325 /* Command is reading => get buffer */
326 if ((reading) && (result == IIC_OK)) {
327 /* Are there data in buffer */
328 if (status & IIC_STS_MDBS) {
329 /*
330 even if we have data we have to wait 4OPB clocks
331 for it to hit the front of the FIFO, after that
332 we can just read. We should check XFCNT here and
333 if the FIFO is full there is no need to wait.
334 */
335 udelay (1);
336 for(j=0;j<bc;j++) {
Heiko Schocher072e7542009-12-03 11:23:17 +0100337 ptr[tran+j] = in_8(IIC_MDBUF1);
Stefan Roeseb79316f2005-08-15 12:31:23 +0200338 __asm__ volatile("eieio");
339 }
340 } else
341 result = IIC_NOK_DATA;
342 }
343 creg = 0;
344 tran+=bc;
345 if( ptr == addr && tran == cnt ) {
346 ptr = data;
347 cnt = data_len;
348 tran = 0;
349 reading = cmd_type;
350 if( reading )
351 creg = IIC_CNTL_RPST;
352 }
353 }
354 return (result);
355}
356
357int i2c_probe1 (uchar chip)
358{
359 uchar buf[1];
360
361 buf[0] = 0;
362
363 /*
364 * What is needed is to send the chip address and verify that the
365 * address was <ACK>ed (i.e. there was a chip at that address which
366 * drove the data line low).
367 */
368 return(i2c_transfer1 (1, chip << 1, 0,0, buf, 1) != 0);
369}
370
371
372int i2c_read1 (uchar chip, uint addr, int alen, uchar * buffer, int len)
373{
374 uchar xaddr[4];
375 int ret;
376
377 if ( alen > 4 ) {
378 printf ("I2C read: addr len %d not supported\n", alen);
379 return 1;
380 }
381
382 if ( alen > 0 ) {
383 xaddr[0] = (addr >> 24) & 0xFF;
384 xaddr[1] = (addr >> 16) & 0xFF;
385 xaddr[2] = (addr >> 8) & 0xFF;
386 xaddr[3] = addr & 0xFF;
387 }
388
389
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +0200390#ifdef CONFIG_SYS_I2C_EEPROM_ADDR_OVERFLOW
Stefan Roeseb79316f2005-08-15 12:31:23 +0200391 /*
392 * EEPROM chips that implement "address overflow" are ones
393 * like Catalyst 24WC04/08/16 which has 9/10/11 bits of
394 * address and the extra bits end up in the "chip address"
395 * bit slots. This makes a 24WC08 (1Kbyte) chip look like
396 * four 256 byte chips.
397 *
398 * Note that we consider the length of the address field to
399 * still be one byte because the extra address bits are
400 * hidden in the chip address.
401 */
402 if( alen > 0 )
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +0200403 chip |= ((addr >> (alen * 8)) & CONFIG_SYS_I2C_EEPROM_ADDR_OVERFLOW);
Stefan Roeseb79316f2005-08-15 12:31:23 +0200404#endif
405 if( (ret = i2c_transfer1( 1, chip<<1, &xaddr[4-alen], alen, buffer, len )) != 0) {
406 printf( "I2c read: failed %d\n", ret);
407 return 1;
408 }
409 return 0;
410}
411
412int i2c_write1 (uchar chip, uint addr, int alen, uchar * buffer, int len)
413{
414 uchar xaddr[4];
415
416 if ( alen > 4 ) {
417 printf ("I2C write: addr len %d not supported\n", alen);
418 return 1;
419
420 }
421 if ( alen > 0 ) {
422 xaddr[0] = (addr >> 24) & 0xFF;
423 xaddr[1] = (addr >> 16) & 0xFF;
424 xaddr[2] = (addr >> 8) & 0xFF;
425 xaddr[3] = addr & 0xFF;
426 }
427
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +0200428#ifdef CONFIG_SYS_I2C_EEPROM_ADDR_OVERFLOW
Stefan Roeseb79316f2005-08-15 12:31:23 +0200429 /*
430 * EEPROM chips that implement "address overflow" are ones
431 * like Catalyst 24WC04/08/16 which has 9/10/11 bits of
432 * address and the extra bits end up in the "chip address"
433 * bit slots. This makes a 24WC08 (1Kbyte) chip look like
434 * four 256 byte chips.
435 *
436 * Note that we consider the length of the address field to
437 * still be one byte because the extra address bits are
438 * hidden in the chip address.
439 */
440 if( alen > 0 )
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +0200441 chip |= ((addr >> (alen * 8)) & CONFIG_SYS_I2C_EEPROM_ADDR_OVERFLOW);
Stefan Roeseb79316f2005-08-15 12:31:23 +0200442#endif
443
444 return (i2c_transfer1( 0, chip<<1, &xaddr[4-alen], alen, buffer, len ) != 0);
445}
446
447/*-----------------------------------------------------------------------
448 * Read a register
449 */
450uchar i2c_reg_read1(uchar i2c_addr, uchar reg)
451{
Wolfgang Denk77ddac92005-10-13 16:45:02 +0200452 uchar buf;
Stefan Roeseb79316f2005-08-15 12:31:23 +0200453
Wolfgang Denk77ddac92005-10-13 16:45:02 +0200454 i2c_read1(i2c_addr, reg, 1, &buf, (uchar)1);
Stefan Roeseb79316f2005-08-15 12:31:23 +0200455
456 return(buf);
457}
458
459/*-----------------------------------------------------------------------
460 * Write a register
461 */
462void i2c_reg_write1(uchar i2c_addr, uchar reg, uchar val)
463{
464 i2c_write1(i2c_addr, reg, 1, &val, 1);
465}
466
467
Wolfgang Denk54841ab2010-06-28 22:00:46 +0200468int do_i2c1_probe(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
Stefan Roeseb79316f2005-08-15 12:31:23 +0200469{
470 int j;
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +0200471#if defined(CONFIG_SYS_I2C_NOPROBES)
Stefan Roeseb79316f2005-08-15 12:31:23 +0200472 int k, skip;
473#endif
474
475 puts ("Valid chip addresses:");
476 for(j = 0; j < 128; j++) {
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +0200477#if defined(CONFIG_SYS_I2C_NOPROBES)
Stefan Roeseb79316f2005-08-15 12:31:23 +0200478 skip = 0;
479 for (k = 0; k < sizeof(i2c_no_probes); k++){
480 if (j == i2c_no_probes[k]){
481 skip = 1;
482 break;
483 }
484 }
485 if (skip)
486 continue;
487#endif
488 if(i2c_probe1(j) == 0) {
489 printf(" %02X", j);
490 }
491 }
492 putc ('\n');
493
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +0200494#if defined(CONFIG_SYS_I2C_NOPROBES)
Stefan Roeseb79316f2005-08-15 12:31:23 +0200495 puts ("Excluded chip addresses:");
496 for( k = 0; k < sizeof(i2c_no_probes); k++ )
497 printf(" %02X", i2c_no_probes[k] );
498 putc ('\n');
499#endif
500
501 return 0;
502}
503
504U_BOOT_CMD(
505 iprobe1, 1, 1, do_i2c1_probe,
Peter Tyser2fb26042009-01-27 18:03:12 -0600506 "probe to discover valid I2C chip addresses",
Wolfgang Denka89c33d2009-05-24 17:06:54 +0200507 ""
Stefan Roeseb79316f2005-08-15 12:31:23 +0200508);
509
Wolfgang Denk3d078ce2005-08-15 16:03:56 +0200510#endif /* CONFIG_I2C_BUS1 */