diff options
| -rw-r--r-- | drivers/i2c/busses/i2c-frodo.c | 85 | ||||
| -rw-r--r-- | include/linux/i2c-id.h | 1 |
2 files changed, 0 insertions, 86 deletions
diff --git a/drivers/i2c/busses/i2c-frodo.c b/drivers/i2c/busses/i2c-frodo.c deleted file mode 100644 index b6f52f5a4138..000000000000 --- a/drivers/i2c/busses/i2c-frodo.c +++ /dev/null | |||
| @@ -1,85 +0,0 @@ | |||
| 1 | |||
| 2 | /* | ||
| 3 | * linux/drivers/i2c/i2c-frodo.c | ||
| 4 | * | ||
| 5 | * Author: Abraham van der Merwe <abraham@2d3d.co.za> | ||
| 6 | * | ||
| 7 | * An I2C adapter driver for the 2d3D, Inc. StrongARM SA-1110 | ||
| 8 | * Development board (Frodo). | ||
| 9 | * | ||
| 10 | * This source code is free software; you can redistribute it and/or | ||
| 11 | * modify it under the terms of the GNU General Public License | ||
| 12 | * version 2 as published by the Free Software Foundation. | ||
| 13 | */ | ||
| 14 | |||
| 15 | #include <linux/module.h> | ||
| 16 | #include <linux/kernel.h> | ||
| 17 | #include <linux/init.h> | ||
| 18 | #include <linux/delay.h> | ||
| 19 | #include <linux/i2c.h> | ||
| 20 | #include <linux/i2c-algo-bit.h> | ||
| 21 | #include <asm/hardware.h> | ||
| 22 | |||
| 23 | |||
| 24 | static void frodo_setsda (void *data,int state) | ||
| 25 | { | ||
| 26 | if (state) | ||
| 27 | FRODO_CPLD_I2C |= FRODO_I2C_SDA_OUT; | ||
| 28 | else | ||
| 29 | FRODO_CPLD_I2C &= ~FRODO_I2C_SDA_OUT; | ||
| 30 | } | ||
| 31 | |||
| 32 | static void frodo_setscl (void *data,int state) | ||
| 33 | { | ||
| 34 | if (state) | ||
| 35 | FRODO_CPLD_I2C |= FRODO_I2C_SCL_OUT; | ||
| 36 | else | ||
| 37 | FRODO_CPLD_I2C &= ~FRODO_I2C_SCL_OUT; | ||
| 38 | } | ||
| 39 | |||
| 40 | static int frodo_getsda (void *data) | ||
| 41 | { | ||
| 42 | return ((FRODO_CPLD_I2C & FRODO_I2C_SDA_IN) != 0); | ||
| 43 | } | ||
| 44 | |||
| 45 | static int frodo_getscl (void *data) | ||
| 46 | { | ||
| 47 | return ((FRODO_CPLD_I2C & FRODO_I2C_SCL_IN) != 0); | ||
| 48 | } | ||
| 49 | |||
| 50 | static struct i2c_algo_bit_data bit_frodo_data = { | ||
| 51 | .setsda = frodo_setsda, | ||
| 52 | .setscl = frodo_setscl, | ||
| 53 | .getsda = frodo_getsda, | ||
| 54 | .getscl = frodo_getscl, | ||
| 55 | .udelay = 80, | ||
| 56 | .mdelay = 80, | ||
| 57 | .timeout = HZ | ||
| 58 | }; | ||
| 59 | |||
| 60 | static struct i2c_adapter frodo_ops = { | ||
| 61 | .owner = THIS_MODULE, | ||
| 62 | .id = I2C_HW_B_FRODO, | ||
| 63 | .algo_data = &bit_frodo_data, | ||
| 64 | .dev = { | ||
| 65 | .name = "Frodo adapter driver", | ||
| 66 | }, | ||
| 67 | }; | ||
| 68 | |||
| 69 | static int __init i2c_frodo_init (void) | ||
| 70 | { | ||
| 71 | return i2c_bit_add_bus(&frodo_ops); | ||
| 72 | } | ||
| 73 | |||
| 74 | static void __exit i2c_frodo_exit (void) | ||
| 75 | { | ||
| 76 | i2c_bit_del_bus(&frodo_ops); | ||
| 77 | } | ||
| 78 | |||
| 79 | MODULE_AUTHOR ("Abraham van der Merwe <abraham@2d3d.co.za>"); | ||
| 80 | MODULE_DESCRIPTION ("I2C-Bus adapter routines for Frodo"); | ||
| 81 | MODULE_LICENSE ("GPL"); | ||
| 82 | |||
| 83 | module_init (i2c_frodo_init); | ||
| 84 | module_exit (i2c_frodo_exit); | ||
| 85 | |||
diff --git a/include/linux/i2c-id.h b/include/linux/i2c-id.h index 474c8f4f5d4f..ec311bc89439 100644 --- a/include/linux/i2c-id.h +++ b/include/linux/i2c-id.h | |||
| @@ -172,7 +172,6 @@ | |||
| 172 | #define I2C_HW_B_RIVA 0x010010 /* Riva based graphics cards */ | 172 | #define I2C_HW_B_RIVA 0x010010 /* Riva based graphics cards */ |
| 173 | #define I2C_HW_B_IOC 0x010011 /* IOC bit-wiggling */ | 173 | #define I2C_HW_B_IOC 0x010011 /* IOC bit-wiggling */ |
| 174 | #define I2C_HW_B_TSUNA 0x010012 /* DEC Tsunami chipset */ | 174 | #define I2C_HW_B_TSUNA 0x010012 /* DEC Tsunami chipset */ |
| 175 | #define I2C_HW_B_FRODO 0x010013 /* 2d3D SA-1110 Development Board */ | ||
| 176 | #define I2C_HW_B_OMAHA 0x010014 /* Omaha I2C interface (ARM) */ | 175 | #define I2C_HW_B_OMAHA 0x010014 /* Omaha I2C interface (ARM) */ |
| 177 | #define I2C_HW_B_GUIDE 0x010015 /* Guide bit-basher */ | 176 | #define I2C_HW_B_GUIDE 0x010015 /* Guide bit-basher */ |
| 178 | #define I2C_HW_B_IXP2000 0x010016 /* GPIO on IXP2000 systems */ | 177 | #define I2C_HW_B_IXP2000 0x010016 /* GPIO on IXP2000 systems */ |
