blob: 5bcb1f0bb334e2a9ce6761348427779ff9567d0b [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001/*
2 * i2c-au1550.c: SMBus (i2c) adapter for Alchemy PSC interface
3 * Copyright (C) 2004 Embedded Edge, LLC <dan@embeddededge.com>
4 *
5 * 2.6 port by Matt Porter <mporter@kernel.crashing.org>
6 *
7 * The documentation describes this as an SMBus controller, but it doesn't
8 * understand any of the SMBus protocol in hardware. It's really an I2C
9 * controller that could emulate most of the SMBus in software.
10 *
11 * This is just a skeleton adapter to use with the Au1550 PSC
12 * algorithm. It was developed for the Pb1550, but will work with
13 * any Au1550 board that has a similar PSC configuration.
14 *
15 * This program is free software; you can redistribute it and/or
16 * modify it under the terms of the GNU General Public License
17 * as published by the Free Software Foundation; either version 2
18 * of the License, or (at your option) any later version.
19 *
20 * This program is distributed in the hope that it will be useful,
21 * but WITHOUT ANY WARRANTY; without even the implied warranty of
22 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23 * GNU General Public License for more details.
Linus Torvalds1da177e2005-04-16 15:20:36 -070024 */
25
Linus Torvalds1da177e2005-04-16 15:20:36 -070026#include <linux/delay.h>
27#include <linux/kernel.h>
28#include <linux/module.h>
Manuel Lauss8b798c42008-01-27 18:14:52 +010029#include <linux/platform_device.h>
Linus Torvalds1da177e2005-04-16 15:20:36 -070030#include <linux/errno.h>
31#include <linux/i2c.h>
Manuel Lauss8b798c42008-01-27 18:14:52 +010032#include <linux/slab.h>
Linus Torvalds1da177e2005-04-16 15:20:36 -070033
Manuel Lauss50d56762011-08-12 11:39:43 +020034#include <asm/mach-au1x00/au1000.h>
Linus Torvalds1da177e2005-04-16 15:20:36 -070035#include <asm/mach-au1x00/au1xxx_psc.h>
36
Manuel Laussc5de6462011-10-22 13:34:36 +020037#define PSC_SEL 0x00
38#define PSC_CTRL 0x04
39#define PSC_SMBCFG 0x08
40#define PSC_SMBMSK 0x0C
41#define PSC_SMBPCR 0x10
42#define PSC_SMBSTAT 0x14
43#define PSC_SMBEVNT 0x18
44#define PSC_SMBTXRX 0x1C
45#define PSC_SMBTMR 0x20
46
Manuel Lauss8b798c42008-01-27 18:14:52 +010047struct i2c_au1550_data {
Manuel Laussc5de6462011-10-22 13:34:36 +020048 void __iomem *psc_base;
Manuel Lauss8b798c42008-01-27 18:14:52 +010049 int xfer_timeout;
Manuel Lauss8b798c42008-01-27 18:14:52 +010050 struct i2c_adapter adap;
Manuel Lauss8b798c42008-01-27 18:14:52 +010051};
Linus Torvalds1da177e2005-04-16 15:20:36 -070052
Manuel Laussc5de6462011-10-22 13:34:36 +020053static inline void WR(struct i2c_au1550_data *a, int r, unsigned long v)
Linus Torvalds1da177e2005-04-16 15:20:36 -070054{
Manuel Laussc5de6462011-10-22 13:34:36 +020055 __raw_writel(v, a->psc_base + r);
56 wmb();
57}
Linus Torvalds1da177e2005-04-16 15:20:36 -070058
Manuel Laussc5de6462011-10-22 13:34:36 +020059static inline unsigned long RD(struct i2c_au1550_data *a, int r)
60{
61 return __raw_readl(a->psc_base + r);
62}
Linus Torvalds1da177e2005-04-16 15:20:36 -070063
Manuel Laussc5de6462011-10-22 13:34:36 +020064static int wait_xfer_done(struct i2c_au1550_data *adap)
65{
66 int i;
67
68 /* Wait for Tx Buffer Empty */
Linus Torvalds1da177e2005-04-16 15:20:36 -070069 for (i = 0; i < adap->xfer_timeout; i++) {
Manuel Laussc5de6462011-10-22 13:34:36 +020070 if (RD(adap, PSC_SMBSTAT) & PSC_SMBSTAT_TE)
Linus Torvalds1da177e2005-04-16 15:20:36 -070071 return 0;
Chris Davida2027072007-10-13 23:56:33 +020072
Linus Torvalds1da177e2005-04-16 15:20:36 -070073 udelay(1);
74 }
75
76 return -ETIMEDOUT;
77}
78
Manuel Laussc5de6462011-10-22 13:34:36 +020079static int wait_ack(struct i2c_au1550_data *adap)
Linus Torvalds1da177e2005-04-16 15:20:36 -070080{
Manuel Laussc5de6462011-10-22 13:34:36 +020081 unsigned long stat;
Linus Torvalds1da177e2005-04-16 15:20:36 -070082
83 if (wait_xfer_done(adap))
84 return -ETIMEDOUT;
85
Manuel Laussc5de6462011-10-22 13:34:36 +020086 stat = RD(adap, PSC_SMBEVNT);
Linus Torvalds1da177e2005-04-16 15:20:36 -070087 if ((stat & (PSC_SMBEVNT_DN | PSC_SMBEVNT_AN | PSC_SMBEVNT_AL)) != 0)
88 return -ETIMEDOUT;
89
90 return 0;
91}
92
Manuel Laussc5de6462011-10-22 13:34:36 +020093static int wait_master_done(struct i2c_au1550_data *adap)
Linus Torvalds1da177e2005-04-16 15:20:36 -070094{
Manuel Laussc5de6462011-10-22 13:34:36 +020095 int i;
Linus Torvalds1da177e2005-04-16 15:20:36 -070096
Manuel Laussc5de6462011-10-22 13:34:36 +020097 /* Wait for Master Done. */
Manuel Lauss84785f12011-10-22 13:34:38 +020098 for (i = 0; i < 2 * adap->xfer_timeout; i++) {
Manuel Laussc5de6462011-10-22 13:34:36 +020099 if ((RD(adap, PSC_SMBEVNT) & PSC_SMBEVNT_MD) != 0)
Linus Torvalds1da177e2005-04-16 15:20:36 -0700100 return 0;
101 udelay(1);
102 }
103
104 return -ETIMEDOUT;
105}
106
107static int
Manuel Lauss91f27952008-01-27 18:14:52 +0100108do_address(struct i2c_au1550_data *adap, unsigned int addr, int rd, int q)
Linus Torvalds1da177e2005-04-16 15:20:36 -0700109{
Manuel Laussc5de6462011-10-22 13:34:36 +0200110 unsigned long stat;
Linus Torvalds1da177e2005-04-16 15:20:36 -0700111
Manuel Laussc5de6462011-10-22 13:34:36 +0200112 /* Reset the FIFOs, clear events. */
113 stat = RD(adap, PSC_SMBSTAT);
114 WR(adap, PSC_SMBEVNT, PSC_SMBEVNT_ALLCLR);
Domen Puncer88599422006-08-13 23:35:40 +0200115
116 if (!(stat & PSC_SMBSTAT_TE) || !(stat & PSC_SMBSTAT_RE)) {
Manuel Laussc5de6462011-10-22 13:34:36 +0200117 WR(adap, PSC_SMBPCR, PSC_SMBPCR_DC);
118 while ((RD(adap, PSC_SMBPCR) & PSC_SMBPCR_DC) != 0)
119 cpu_relax();
Domen Puncer88599422006-08-13 23:35:40 +0200120 udelay(50);
121 }
Linus Torvalds1da177e2005-04-16 15:20:36 -0700122
Manuel Laussc5de6462011-10-22 13:34:36 +0200123 /* Write out the i2c chip address and specify operation */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700124 addr <<= 1;
125 if (rd)
126 addr |= 1;
127
Manuel Lauss91f27952008-01-27 18:14:52 +0100128 /* zero-byte xfers stop immediately */
129 if (q)
130 addr |= PSC_SMBTXRX_STP;
131
Manuel Laussc5de6462011-10-22 13:34:36 +0200132 /* Put byte into fifo, start up master. */
133 WR(adap, PSC_SMBTXRX, addr);
134 WR(adap, PSC_SMBPCR, PSC_SMBPCR_MS);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700135 if (wait_ack(adap))
136 return -EIO;
Manuel Lauss91f27952008-01-27 18:14:52 +0100137 return (q) ? wait_master_done(adap) : 0;
Linus Torvalds1da177e2005-04-16 15:20:36 -0700138}
139
Manuel Laussc5de6462011-10-22 13:34:36 +0200140static int wait_for_rx_byte(struct i2c_au1550_data *adap, unsigned char *out)
Linus Torvalds1da177e2005-04-16 15:20:36 -0700141{
Manuel Laussc5de6462011-10-22 13:34:36 +0200142 int j;
Linus Torvalds1da177e2005-04-16 15:20:36 -0700143
144 if (wait_xfer_done(adap))
145 return -EIO;
146
Linus Torvalds1da177e2005-04-16 15:20:36 -0700147 j = adap->xfer_timeout * 100;
148 do {
149 j--;
150 if (j <= 0)
151 return -EIO;
152
Manuel Laussc5de6462011-10-22 13:34:36 +0200153 if ((RD(adap, PSC_SMBSTAT) & PSC_SMBSTAT_RE) == 0)
Linus Torvalds1da177e2005-04-16 15:20:36 -0700154 j = 0;
155 else
156 udelay(1);
157 } while (j > 0);
Manuel Laussc5de6462011-10-22 13:34:36 +0200158
159 *out = RD(adap, PSC_SMBTXRX);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700160
161 return 0;
162}
163
Manuel Laussc5de6462011-10-22 13:34:36 +0200164static int i2c_read(struct i2c_au1550_data *adap, unsigned char *buf,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700165 unsigned int len)
166{
Manuel Laussc5de6462011-10-22 13:34:36 +0200167 int i;
Linus Torvalds1da177e2005-04-16 15:20:36 -0700168
169 if (len == 0)
170 return 0;
171
172 /* A read is performed by stuffing the transmit fifo with
173 * zero bytes for timing, waiting for bytes to appear in the
174 * receive fifo, then reading the bytes.
175 */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700176 i = 0;
Manuel Laussc5de6462011-10-22 13:34:36 +0200177 while (i < (len - 1)) {
178 WR(adap, PSC_SMBTXRX, 0);
179 if (wait_for_rx_byte(adap, &buf[i]))
Linus Torvalds1da177e2005-04-16 15:20:36 -0700180 return -EIO;
181
Linus Torvalds1da177e2005-04-16 15:20:36 -0700182 i++;
183 }
184
Manuel Laussc5de6462011-10-22 13:34:36 +0200185 /* The last byte has to indicate transfer done. */
186 WR(adap, PSC_SMBTXRX, PSC_SMBTXRX_STP);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700187 if (wait_master_done(adap))
188 return -EIO;
189
Manuel Laussc5de6462011-10-22 13:34:36 +0200190 buf[i] = (unsigned char)(RD(adap, PSC_SMBTXRX) & 0xff);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700191 return 0;
192}
193
Manuel Laussc5de6462011-10-22 13:34:36 +0200194static int i2c_write(struct i2c_au1550_data *adap, unsigned char *buf,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700195 unsigned int len)
196{
Manuel Laussc5de6462011-10-22 13:34:36 +0200197 int i;
198 unsigned long data;
Linus Torvalds1da177e2005-04-16 15:20:36 -0700199
200 if (len == 0)
201 return 0;
202
Linus Torvalds1da177e2005-04-16 15:20:36 -0700203 i = 0;
204 while (i < (len-1)) {
205 data = buf[i];
Manuel Laussc5de6462011-10-22 13:34:36 +0200206 WR(adap, PSC_SMBTXRX, data);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700207 if (wait_ack(adap))
208 return -EIO;
209 i++;
210 }
211
Manuel Laussc5de6462011-10-22 13:34:36 +0200212 /* The last byte has to indicate transfer done. */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700213 data = buf[i];
214 data |= PSC_SMBTXRX_STP;
Manuel Laussc5de6462011-10-22 13:34:36 +0200215 WR(adap, PSC_SMBTXRX, data);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700216 if (wait_master_done(adap))
217 return -EIO;
218 return 0;
219}
220
221static int
222au1550_xfer(struct i2c_adapter *i2c_adap, struct i2c_msg *msgs, int num)
223{
224 struct i2c_au1550_data *adap = i2c_adap->algo_data;
225 struct i2c_msg *p;
226 int i, err = 0;
227
Manuel Laussc5de6462011-10-22 13:34:36 +0200228 WR(adap, PSC_CTRL, PSC_CTRL_ENABLE);
Manuel Laussf09f71b2008-07-14 22:38:34 +0200229
Linus Torvalds1da177e2005-04-16 15:20:36 -0700230 for (i = 0; !err && i < num; i++) {
231 p = &msgs[i];
Manuel Lauss91f27952008-01-27 18:14:52 +0100232 err = do_address(adap, p->addr, p->flags & I2C_M_RD,
233 (p->len == 0));
Linus Torvalds1da177e2005-04-16 15:20:36 -0700234 if (err || !p->len)
235 continue;
236 if (p->flags & I2C_M_RD)
237 err = i2c_read(adap, p->buf, p->len);
238 else
239 err = i2c_write(adap, p->buf, p->len);
240 }
241
242 /* Return the number of messages processed, or the error code.
243 */
244 if (err == 0)
245 err = num;
Manuel Laussf09f71b2008-07-14 22:38:34 +0200246
Manuel Laussc5de6462011-10-22 13:34:36 +0200247 WR(adap, PSC_CTRL, PSC_CTRL_SUSPEND);
Manuel Laussf09f71b2008-07-14 22:38:34 +0200248
Linus Torvalds1da177e2005-04-16 15:20:36 -0700249 return err;
250}
251
Manuel Laussc5de6462011-10-22 13:34:36 +0200252static u32 au1550_func(struct i2c_adapter *adap)
Linus Torvalds1da177e2005-04-16 15:20:36 -0700253{
Domen Puncer6ed07132006-08-13 23:36:27 +0200254 return I2C_FUNC_I2C | I2C_FUNC_SMBUS_EMUL;
Linus Torvalds1da177e2005-04-16 15:20:36 -0700255}
256
Jean Delvare8f9082c2006-09-03 22:39:46 +0200257static const struct i2c_algorithm au1550_algo = {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700258 .master_xfer = au1550_xfer,
259 .functionality = au1550_func,
260};
261
Manuel Laussf09f71b2008-07-14 22:38:34 +0200262static void i2c_au1550_setup(struct i2c_au1550_data *priv)
Linus Torvalds1da177e2005-04-16 15:20:36 -0700263{
Manuel Laussc5de6462011-10-22 13:34:36 +0200264 unsigned long cfg;
Linus Torvalds1da177e2005-04-16 15:20:36 -0700265
Manuel Laussc5de6462011-10-22 13:34:36 +0200266 WR(priv, PSC_CTRL, PSC_CTRL_DISABLE);
267 WR(priv, PSC_SEL, PSC_SEL_PS_SMBUSMODE);
268 WR(priv, PSC_SMBCFG, 0);
269 WR(priv, PSC_CTRL, PSC_CTRL_ENABLE);
270 while ((RD(priv, PSC_SMBSTAT) & PSC_SMBSTAT_SR) == 0)
271 cpu_relax();
Linus Torvalds1da177e2005-04-16 15:20:36 -0700272
Manuel Laussc5de6462011-10-22 13:34:36 +0200273 cfg = PSC_SMBCFG_RT_FIFO8 | PSC_SMBCFG_TT_FIFO8 | PSC_SMBCFG_DD_DISABLE;
274 WR(priv, PSC_SMBCFG, cfg);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700275
276 /* Divide by 8 to get a 6.25 MHz clock. The later protocol
277 * timings are based on this clock.
278 */
Manuel Laussc5de6462011-10-22 13:34:36 +0200279 cfg |= PSC_SMBCFG_SET_DIV(PSC_SMBCFG_DIV8);
280 WR(priv, PSC_SMBCFG, cfg);
281 WR(priv, PSC_SMBMSK, PSC_SMBMSK_ALLMASK);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700282
283 /* Set the protocol timer values. See Table 71 in the
284 * Au1550 Data Book for standard timing values.
285 */
Manuel Lauss8a5e3d42015-09-08 08:56:23 +0200286 WR(priv, PSC_SMBTMR, PSC_SMBTMR_SET_TH(0) | PSC_SMBTMR_SET_PS(20) | \
287 PSC_SMBTMR_SET_PU(20) | PSC_SMBTMR_SET_SH(20) | \
288 PSC_SMBTMR_SET_SU(20) | PSC_SMBTMR_SET_CL(20) | \
289 PSC_SMBTMR_SET_CH(20));
Linus Torvalds1da177e2005-04-16 15:20:36 -0700290
Manuel Laussc5de6462011-10-22 13:34:36 +0200291 cfg |= PSC_SMBCFG_DE_ENABLE;
292 WR(priv, PSC_SMBCFG, cfg);
293 while ((RD(priv, PSC_SMBSTAT) & PSC_SMBSTAT_SR) == 0)
294 cpu_relax();
Manuel Laussf09f71b2008-07-14 22:38:34 +0200295
Manuel Laussc5de6462011-10-22 13:34:36 +0200296 WR(priv, PSC_CTRL, PSC_CTRL_SUSPEND);
Manuel Laussf09f71b2008-07-14 22:38:34 +0200297}
298
299static void i2c_au1550_disable(struct i2c_au1550_data *priv)
300{
Manuel Laussc5de6462011-10-22 13:34:36 +0200301 WR(priv, PSC_SMBCFG, 0);
302 WR(priv, PSC_CTRL, PSC_CTRL_DISABLE);
Manuel Laussf09f71b2008-07-14 22:38:34 +0200303}
304
305/*
306 * registering functions to load algorithms at runtime
307 * Prior to calling us, the 50MHz clock frequency and routing
308 * must have been set up for the PSC indicated by the adapter.
309 */
Bill Pemberton0b255e92012-11-27 15:59:38 -0500310static int
Manuel Laussf09f71b2008-07-14 22:38:34 +0200311i2c_au1550_probe(struct platform_device *pdev)
312{
313 struct i2c_au1550_data *priv;
314 struct resource *r;
315 int ret;
316
Axel Lin174f2362015-06-09 15:52:49 +0800317 priv = devm_kzalloc(&pdev->dev, sizeof(struct i2c_au1550_data),
318 GFP_KERNEL);
319 if (!priv)
320 return -ENOMEM;
321
Manuel Laussf09f71b2008-07-14 22:38:34 +0200322 r = platform_get_resource(pdev, IORESOURCE_MEM, 0);
Axel Lin174f2362015-06-09 15:52:49 +0800323 priv->psc_base = devm_ioremap_resource(&pdev->dev, r);
324 if (IS_ERR(priv->psc_base))
325 return PTR_ERR(priv->psc_base);
Manuel Laussf09f71b2008-07-14 22:38:34 +0200326
Manuel Laussf09f71b2008-07-14 22:38:34 +0200327 priv->xfer_timeout = 200;
Manuel Laussf09f71b2008-07-14 22:38:34 +0200328
Manuel Laussf09f71b2008-07-14 22:38:34 +0200329 priv->adap.nr = pdev->id;
330 priv->adap.algo = &au1550_algo;
331 priv->adap.algo_data = priv;
332 priv->adap.dev.parent = &pdev->dev;
333 strlcpy(priv->adap.name, "Au1xxx PSC I2C", sizeof(priv->adap.name));
334
Manuel Laussc5de6462011-10-22 13:34:36 +0200335 /* Now, set up the PSC for SMBus PIO mode. */
Manuel Laussf09f71b2008-07-14 22:38:34 +0200336 i2c_au1550_setup(priv);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700337
Manuel Lauss8b798c42008-01-27 18:14:52 +0100338 ret = i2c_add_numbered_adapter(&priv->adap);
Axel Lin174f2362015-06-09 15:52:49 +0800339 if (ret) {
340 i2c_au1550_disable(priv);
341 return ret;
Manuel Lauss8b798c42008-01-27 18:14:52 +0100342 }
343
Axel Lin174f2362015-06-09 15:52:49 +0800344 platform_set_drvdata(pdev, priv);
345 return 0;
Linus Torvalds1da177e2005-04-16 15:20:36 -0700346}
347
Bill Pemberton0b255e92012-11-27 15:59:38 -0500348static int i2c_au1550_remove(struct platform_device *pdev)
Linus Torvalds1da177e2005-04-16 15:20:36 -0700349{
Manuel Lauss8b798c42008-01-27 18:14:52 +0100350 struct i2c_au1550_data *priv = platform_get_drvdata(pdev);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700351
Manuel Lauss8b798c42008-01-27 18:14:52 +0100352 i2c_del_adapter(&priv->adap);
Manuel Laussf09f71b2008-07-14 22:38:34 +0200353 i2c_au1550_disable(priv);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700354 return 0;
355}
356
Manuel Laussf09f71b2008-07-14 22:38:34 +0200357#ifdef CONFIG_PM
Manuel Lauss46f344e22011-10-22 13:34:39 +0200358static int i2c_au1550_suspend(struct device *dev)
Linus Torvalds1da177e2005-04-16 15:20:36 -0700359{
Manuel Lauss46f344e22011-10-22 13:34:39 +0200360 struct i2c_au1550_data *priv = dev_get_drvdata(dev);
Manuel Lauss8b798c42008-01-27 18:14:52 +0100361
Manuel Laussf09f71b2008-07-14 22:38:34 +0200362 i2c_au1550_disable(priv);
363
Linus Torvalds1da177e2005-04-16 15:20:36 -0700364 return 0;
365}
366
Manuel Lauss46f344e22011-10-22 13:34:39 +0200367static int i2c_au1550_resume(struct device *dev)
Linus Torvalds1da177e2005-04-16 15:20:36 -0700368{
Manuel Lauss46f344e22011-10-22 13:34:39 +0200369 struct i2c_au1550_data *priv = dev_get_drvdata(dev);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700370
Manuel Laussf09f71b2008-07-14 22:38:34 +0200371 i2c_au1550_setup(priv);
372
Manuel Lauss8b798c42008-01-27 18:14:52 +0100373 return 0;
Linus Torvalds1da177e2005-04-16 15:20:36 -0700374}
Manuel Lauss46f344e22011-10-22 13:34:39 +0200375
376static const struct dev_pm_ops i2c_au1550_pmops = {
377 .suspend = i2c_au1550_suspend,
378 .resume = i2c_au1550_resume,
379};
380
381#define AU1XPSC_SMBUS_PMOPS (&i2c_au1550_pmops)
382
Manuel Laussf09f71b2008-07-14 22:38:34 +0200383#else
Manuel Lauss46f344e22011-10-22 13:34:39 +0200384#define AU1XPSC_SMBUS_PMOPS NULL
Manuel Laussf09f71b2008-07-14 22:38:34 +0200385#endif
Linus Torvalds1da177e2005-04-16 15:20:36 -0700386
Manuel Lauss8b798c42008-01-27 18:14:52 +0100387static struct platform_driver au1xpsc_smbus_driver = {
388 .driver = {
389 .name = "au1xpsc_smbus",
Manuel Lauss46f344e22011-10-22 13:34:39 +0200390 .pm = AU1XPSC_SMBUS_PMOPS,
Manuel Lauss8b798c42008-01-27 18:14:52 +0100391 },
392 .probe = i2c_au1550_probe,
Bill Pemberton0b255e92012-11-27 15:59:38 -0500393 .remove = i2c_au1550_remove,
Manuel Lauss8b798c42008-01-27 18:14:52 +0100394};
395
Axel Lina3664b52012-01-12 20:32:04 +0100396module_platform_driver(au1xpsc_smbus_driver);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700397
398MODULE_AUTHOR("Dan Malek, Embedded Edge, LLC.");
399MODULE_DESCRIPTION("SMBus adapter Alchemy pb1550");
400MODULE_LICENSE("GPL");
Kay Sieversadd8eda2008-04-22 22:16:49 +0200401MODULE_ALIAS("platform:au1xpsc_smbus");